地铁风格:使用鼠标滚轮滚动 [英] Metro style : Scrolling with mouse wheel
本文介绍了地铁风格:使用鼠标滚轮滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在gridview中有gridview,想要实现鼠标滚轮滚动功能。所以我把这个块添加到了 内部gridview< gridview.template> < /gridview.template>
I have gridview in the gridview and want to implement the mouse wheel scrolling functionality. So I added this block into the internal gridview <gridview.template> </gridview.template>
<GridView.Template>
<ControlTemplate >
<ItemsPresenter />
</ControlTemplate>
</GridView.Template>
但在这种情况下,滑动不起作用
But in this case swiping doesn't work
我该如何解决?这个问题?
How can I solve this problem?
推荐答案
您删除了生成滑动体验所需的所有视觉状态和元素。您应该创建模板的副本。
You removed all the visual states and elements needed to generate the swipe experience. You should create a copy of the template.
这篇关于地铁风格:使用鼠标滚轮滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文