禁用交叉滑动选择的列表视图 [英] Disable cross-slide selection for a listview
问题描述
我设计一个在中心垂直平移一维列表中的应用程序,用户可以横向列表之间翻转由于flipview。
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.
在用户列表视图中拖动水平,它选择该行,因为的十字滑台。这不是我想要的行为。 preferably我希望的flipview开始平移左右。我认为这是事做导轨由于当用户锅斜,就可以出锅了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.
横向滑板,甚至发生在selectionMode是设置为无
Cross-slide even happens when selectionmode is set to None
我如何禁用十字滑台,还是我如何确保当用户会左右了flipview锅,而不是列表视图的项目?
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?
推荐答案
IsSwipeEnabled上的ListView可能做的伎俩=FALSE。你也可以编辑ListView.ItemContainerStyle / ListViewItem的模板来禁止一些视觉状态反馈转换。
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.
这篇关于禁用交叉滑动选择的列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!