ComboBox displays repeated Items in Windows 8 Surf

2019-03-03 18:35发布

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.

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 ?

1条回答
手持菜刀,她持情操
2楼-- · 2019-03-03 19:05

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′s combobox and the carouselpanel

winRT ComoBox: suggestions to replace it with standard dropdown behavior?

查看更多
登录 后发表回答