WP7 在枢轴控件中切换开关? [英] WP7 Toggle switch in a Pivot control?

查看:36
本文介绍了WP7 在枢轴控件中切换开关?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以控制轻弹动作的阈值来打开/关闭切换开关,以免干扰枢轴控件的导航?

Is there any way to control the threshold of the flick action to on/off a toggle switch so that it doesn't mess with the pivot control's navigation?

推荐答案

抱歉,我会回避你的问题(反正我也无法回答),并建议你使用不同的方法.
您可以(我假设)使用复选框来轻松地向使用该应用程序的人提供选项.毕竟,切换开关与复选框具有相同的功能(在两种状态之间指定/选择),只是实现交互的方式不同.

Sorry, but I'm going to avoid you're question (I can't answer it anyway) and suggest you use a different approach.
You could (I assume) use a checkbox to just as easily provide the option to the person using the application. Afterall a toggle switch has the same functionality as a checkbox (specify/choose between two states) it just implements the interaction differently.

拨动开关的设计/制造 (AFAIK) 尚未支持在也支持相同手势的事物之上使用.
作为可用性的一般规则,将支持相同手势的控件置于彼此之上(甚至彼此相邻)可能会给用户带来问题.即使问题是由于意外触发了错误的手势或对如何解释他们的手势的期望而造成的.

The toggle switch has not been designed/built (AFAIK) to support being used on top of something which also supports the same gesture.
As a general rule of usability, having controls on top of each other (or even next to each other) which support the same gesture is likely to cause problems for the user. Even if the problems are through accidentaly triggering the wrong gesture or expectations about how their gesture will be interpretted.

总而言之:这是一个非常棘手的问题;我认为你不能像现在这样使用控件;如果您使用不同的控件进行切换,问题就会完全消失.

In summary: this is a really tricky problem to solve; I don't think you can with the controls as they are; and the problem goes away entirely if you use a different control for toggling anyway.

这篇关于WP7 在枢轴控件中切换开关?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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