Search code examples
listviewwindows-8windows-runtimewinrt-xamlgesture

Disable cross-slide selection for a listview


I'm designing an app that has a vertically panning one-dimensional list in the centre and the user is able to flip between lists horizontally due to a flipview.

A vertically panning one-dimensional list

When a user drags horizontally within the listview, it selects that row because of cross-slide. This isn't the behaviour I want. Preferably I would want the flipview to start panning left and right. I think it's something to do with rails because when the user pans diagonally, they can pan the flipview.

Cross-slide even happens when selectionmode is set to None

How do I disable cross-slide, or how do I ensure that when a user pans left and right that the flipview pans and not the listview items?


Solution

  • IsSwipeEnabled="False" on the ListView might do the trick. You might also edit the ListView.ItemContainerStyle/ListViewItem template to disable some visual state feedback transitions.