组合框显示重复的项目在Windows 8的表面 [英] ComboBox displays repeated Items in Windows 8 Surface
问题描述
我的一个问题,我有时纳闷的是,组合框是如何显示的项目多次在Windows 8表面。我有这势必组合框在Windows Store应用程序集合。我检查了模拟器和本地机调试这个有限的集合。这是工作在这两种情况下的罚款。
One of my question and i wonder sometimes is, how ComboBox displays Items repeatedly in Windows 8 Surface. I have the Collection which is bound to ComboBox in Windows Store apps. I checked this bounded collections in Simulator and Local machine debugging. It is working fine in both the cases.
但是,当我把相同的应用程序到Windows 8的表面进行测试,这在组合框的下拉重复显示的项目了。我在这里的任何遗漏?你能不能请人帮助我在此要禁用此选项?
But when i bring the same app to Windows 8 surface to test it, this ComboBox displays Items repeatedly in its drop down. Am i anything missing here?. Could you please anyone help me on this to disable this option ?
推荐答案
组合框使用 CarouselPanel
为 ItemsPanel
,您需要更改为的StackPanel
,那么你的问题将得到解决。
Combo box uses CarouselPanel
as ItemsPanel
, you need to change to StackPanel
, then your problem will be solved.
下面是关于该详细博客。我希望它可以帮助你。
Here's detailed blog regarding that. I hope it might help you.
的 Windows 8中的组合框和carouselpanel
的 WinRT的ComoBox:建议使用标准的下拉行为代替它?
这篇关于组合框显示重复的项目在Windows 8的表面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!