地铁风格:使用鼠标滚轮滚动

地铁风格:使用鼠标滚轮滚动

问题描述:

我在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.