取消 WinRT ComboBox 无限滚动效果 [英] Cancel WinRT ComboBox infinte scroll effect
本文介绍了取消 WinRT ComboBox 无限滚动效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 WinRT 中取消 ComboBox 上的无限滚动效果.我尝试了很多解决方案,但似乎没有一个有效.
How to cancel the infinite scroll effect on the ComboBox in WinRT. I tried a lot of solutions but no one seems working.
PS:我只在触摸模式下遇到这个问题!
PS: I got this issue only in the touch mode !
谢谢,
推荐答案
您需要将 ItemsPanelTemplate
更改为 StackPanel
.
You need to change the ItemsPanelTemplate
to StackPanel
.
<ComboBox Width="200" Height="50">
<ComboBoxItem Content="Test"/>
<ComboBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Vertical" />
</ItemsPanelTemplate>
</ComboBox.ItemsPanel>
</ComboBox>
这篇关于取消 WinRT ComboBox 无限滚动效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文