我试图将焦点集中在表面列表框中单击的项目上。对于 WPF,我有一篇类似的文章,它在设置 .
完整的 xaml 代码位于 http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/5d486826-9a72-4769-bd09-ff6977e16c30/#cd2cd9af-abbf-40ca-9e30-4684ee2a2eb2
我尝试在 xaml 代码中对表面按钮执行相同的操作,即将其作为项目放入表面列表框中,没有任何反应。基本上,我的列表框包含表面按钮,当单击任何按钮时,它会放大,即它的大小增加。唯一的问题是,由于 z 顺序问题,下一个项目与缩放后的项目重叠。对于普通的 WPF 列表框和按钮控件,上面的代码可以解决问题,但对于表面应用程序来说却没有。
将不胜感激此问题中的任何帮助/指示。
I am trying to bring the focus on the clicked item of the surface listbox. For WPF I had a similar post and it worked after setting the trigger property of .
The full xaml code is available at http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/5d486826-9a72-4769-bd09-ff6977e16c30/#cd2cd9af-abbf-40ca-9e30-4684ee2a2eb2
I tried doing the same in the xaml code for a surface button which is put as item in surface listbox, nothing happens. Basically, my listbox contains surface buttons and when any button is clicked, it scales up i.e. the size of it increases. The only issue is that next item overlaps the scaled item because of the z-order issue. For the normal WPF listbox and button control above code did the trick but its not happening for surface application.
Would appreciate any help/directions in this issue.
发布评论
评论(1)
让它工作了..已经发布在MSDN上,它最终通过设置surfaceListbox的zIndex而不是表面按钮项目的内容来工作。
http://social.msdn.microsoft.com/Forums/en-US/surfaceappdevelopment/thread/970877bd-2960-4f0e-a203-1d357bbd55ce/#4a08e54b-5055-4a66-ad75-762ee88ef303
Got it working.. Had posted on MSDN and it finally worked by setting the zIndex of the surfaceListbox instead of the content of the item which was a surfacebutton.
http://social.msdn.microsoft.com/Forums/en-US/surfaceappdevelopment/thread/970877bd-2960-4f0e-a203-1d357bbd55ce/#4a08e54b-5055-4a66-ad75-762ee88ef303