触摸模式下的 UWP ListView
UWP ListView in touch mode
我在 Windows 10 项目中有这个 ListView:
<ListView ItemsSource="{x:Bind ViewModel.ItemsList, Mode=TwoWay, Converter={StaticResource BindableSourceConverter}}"
ScrollViewer.HorizontalScrollMode="Disabled"
ScrollViewer.VerticalScrollMode="Disabled"
RelativePanel.Below="pageHeader"
CanReorderItems="True"
SelectionMode="None"
CanDragItems="True"
AllowDrop="True"
CanDrag="True" />
我需要允许用户重新排序 ListView。
使用鼠标一切正常,但是使用触摸,我需要等待一秒钟才能移动项目。
知道如何解决这个问题吗?
没有,如果你不等一秒钟,内部 ScrollViewer 就会认为你在做滚动动作。由于它无法确定您的意图,因此无法区分。
如果不需要滚动操作,请考虑不使用 ListView。
我在 Windows 10 项目中有这个 ListView:
<ListView ItemsSource="{x:Bind ViewModel.ItemsList, Mode=TwoWay, Converter={StaticResource BindableSourceConverter}}"
ScrollViewer.HorizontalScrollMode="Disabled"
ScrollViewer.VerticalScrollMode="Disabled"
RelativePanel.Below="pageHeader"
CanReorderItems="True"
SelectionMode="None"
CanDragItems="True"
AllowDrop="True"
CanDrag="True" />
我需要允许用户重新排序 ListView。
使用鼠标一切正常,但是使用触摸,我需要等待一秒钟才能移动项目。
知道如何解决这个问题吗?
没有,如果你不等一秒钟,内部 ScrollViewer 就会认为你在做滚动动作。由于它无法确定您的意图,因此无法区分。
如果不需要滚动操作,请考虑不使用 ListView。