WinRT的XAML中抽头事件响应速度很慢而被点击的快速回应 [英] Winrt Xaml Tapped Event Responds Slowly While Clicked Responds Rapidly

查看:140
本文介绍了WinRT的XAML中抽头事件响应速度很慢而被点击的快速回应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近创建了用户可以迅速地点击按键的自定义输入板(这基本上是一个自定义的数字输入键盘)。问题是,如果用于注册为输入板键处理程序的按钮窃听事件作出响应,所以慢慢地按下按钮会丢失(这意味着如果我迅速按下数字2的五倍,也许2或3三三两两出现)。更改事件从轻拍点击(相同的代码,否则)会导致输入板是充分响应。



为什么是它的螺纹事件处理程序是如此反应迟钝,是有有没有使用螺纹,而不是被点击的处理任何潜在影响?


解决方案

我没有用它足够的验证,但它可能支持双窃听事件

。或许,如果你设置 IsDoubleTapEnabled 然后点击事件会在更早。


I recently created a custom entry pad with buttons that the user may be clicking rapidly (it is basically a custom numeric entry pad). The problem is that if the button tapped event is used to register the handler for the entry pad key it responds so slowly that button presses are missed (meaning if I rapidly press the number 2 five times, maybe 2 or 3 twos show up). Changing the event from Tapped to Clicked (same code otherwise) causes the entry pad to be fully responsive.

Why is it that the Tapped event handler is so unresponsive and is are there any potential repercussions for using the Tapped instead of the Clicked handler?

解决方案

I haven't used it enough to verify, but it's likely to support double tapped events. Perhaps if you set IsDoubleTapEnabled to false then tap events will come in sooner.

这篇关于WinRT的XAML中抽头事件响应速度很慢而被点击的快速回应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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