Disable cross-slide selection for a listview

一世执手 提交于 2019-12-01 18:13:03

问题


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.

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?


回答1:


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.



来源:https://stackoverflow.com/questions/11774209/disable-cross-slide-selection-for-a-listview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!