I am using a ListView in a Windows Store App. Whenever I start swiping(using simulator tap mode) over the list view all the items move together as illustrated in the picture. How can I disable this manipulation event?
相关问题
- VNC control for WPF application
- Inheritance impossible in Windows Runtime Componen
- WPF Binding from System.Windows.SystemParameters.P
- XAML: Applying styles to nested controls
- How can I add a horizontal line (“goal line”) for
To your
ListView
, add:If that is not enough (this sometimes does not work with MouseWheel events, in that the events still tend to be caught in the ListView and also tends to happen if the list inside of the ScrollViewer is particularly large, I've found), then you need to create a custom control to specifically ignore the event, such as this for
PointerWheelChanged
.This will disable mouse wheel scrolling inside of your
ListView
. You'll have to change your XAML reference to theListView
from<ListView>
to<namespace:ListView>
wherenamespace
is the namespace you've created your ListView in.