none
ListView重写模板后,增加了滚动条,在触摸拖拽的时候获取不到ListViewItem,直接捕获的ScrollViewer,这个问题怎么解决呢? RRS feed

全部回复

  • Hi,

    ListView的默认模板本身就有ScrollViewer,不重写模板的时候可以工作不?

    请确定e.OriginalSource的类型,以确定可以找到ListViewItem类型的父容器。

    也许下面的文章可以对你有帮助,

    https://www.cnblogs.com/jevonsflash/p/6774358.html

    Best Regards,

    Bob


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2018年4月2日 6:15
    版主