自来水禁用的ListView选择在Metro风格应用程序 [英] Disable ListView selection on Tap in a Metro Style App

查看:110
本文介绍了自来水禁用的ListView选择在Metro风格应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让刷卡作为唯一的方法来选择在我的ListView项目(一拉砖)。有没有什么办法阻止更改选择一个ListView当你点击一个项目?

I am trying to allow swipe as the only method to select an item in my ListView (a la tiles). Is there any way to stop a ListView from changing selection when you tap on an item?

我已经试过把IsTapEnabled对我所能,在ItemContainerStyle,在那里我这样做的所有视觉元素没有效果的ListView和也的副本。

I've tried putting IsTapEnabled on everything I can, the ListView and also a copy of the ItemContainerStyle, where I did so on all the visual elements to no effect.

推荐答案

其实你可以这样做设置IsItemClickEnabled为true。根据马克·赖德奥特:<一href="http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/2572f184-b163-4732-9a9d-8d5c404e40b5" rel="nofollow">http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/2572f184-b163-4732-9a9d-8d5c404e40b5

In fact you can do so by setting IsItemClickEnabled to true. As per Mark Rideout: http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/2572f184-b163-4732-9a9d-8d5c404e40b5

这篇关于自来水禁用的ListView选择在Metro风格应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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