禁用交叉滑动选择的列表视图 [英] Disable cross-slide selection for a listview

查看:285
本文介绍了禁用交叉滑动选择的列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设计一个在中心垂直平移一维列表中的应用程序,用户可以横向列表之间翻转由于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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆