禁用列表视图的横向幻灯片选择幻灯片、视图、横向、列表

由网友(剑走偏锋不回头i)分享简介:我正在设计一个应用程序,它在中心有一个垂直平移的一维列表,并且由于翻转视图,用户能够在列表之间水平翻转.I'm designing an app that has a vertically panning one-dimensional list in the centre and the user is able...

我正在设计一个应用程序,它在中心有一个垂直平移的一维列表,并且由于翻转视图,用户能够在列表之间水平翻转.

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.

当用户在列表视图中水平拖动时,它会选择该行,因为 交叉幻灯片.这不是我想要的行为.最好我希望翻转视图开始左右平移.我认为这与 rails 有关因为当用户对角平移时,他们可以平移翻转视图.

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 设置为 None

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?

推荐答案

ListView 上的 IsSwipeEnabled="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.

阅读全文

相关推荐

最新文章