射击事件的模糊性

射击事件的模糊性

本文介绍了射击事件的模糊性 - 表面装置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个ScatterViewItem,它包含一个图像,一个网格(默认情况下Visibility为false)和一个SurfaceButton。单击此按钮,网格将变为可见。


同样的ScatterViewItem也应该支持我编写了PreviewTouchMove的拖放功能。


在Simulator上一切正常。


但是当我在Surface设备上执行代码时,Surface触摸非常敏感,有时它会将SurfaceButton点击作为PreviewTouchMove。 (取决于用户触摸按钮的方式)。


现在,我的查询是......有没有可能我可以最大限度地减少这种歧义。我的意思是,当我触摸SurfaceButton时,PreviewTouchMove永远不应该触发。即使有其他方法可以避免这种歧义,它也会非常有用。


谢谢,


Sai Kishore。

解决方案

Hi,

I have a ScatterViewItem which contains an image, a grid (by default Visibility is false) and a SurfaceButton. On Click of this button, the grid will be made visible.

The same ScatterViewItem should also support Drag and Drop feature for which I have coded PreviewTouchMove.

Everything is working fine on Simulator.

But when I executed the code on Surface device, Surface touch is so sensitive that sometimes it is taking SurfaceButton click as PreviewTouchMove. (of coure, it depends on the way the user touches the button).

Now, my query is... is there any Possibility that I can minimise this ambiguity. I mean, when I touch SurfaceButton, PreviewTouchMove should never fire. It will be really helpful even if there are other ways to avoid such ambiguities.

Thanks,

Sai Kishore.

解决方案


这篇关于射击事件的模糊性 - 表面装置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 23:40