MouseLeftButtonUp 替代方案 - Windows Mobile
还有其他明智的方法可以在 Windows Mobile 应用程序上触发触摸事件吗?
我有一个绞刑吏游戏。我有一堆图像,它们是字母表。
我已将所有图像放入滚动查看器中,以便用户可以滚动列表。
作为预防措施,我将单击事件设置为 MouseLeftButtonUp,因为如果我将其设置为“Down”,当用户实际上只想滚动时,它将触发图像代码。
然而,即使使用 MouseLeftButtonUp,我仍然遇到同样的问题。当我测试它时,它会滚动,但如果手指仍然在同一个图像上,并且如果我松开手指,它会触发该图像后面的代码...
我该如何克服这个问题?我希望我的情况很清楚。
Is there any other sensible way where I can fire a touch event on a Windows Mobile App?
I have a Hangman game. I have a bunch of images which are the alphabet.
I've put all of the images inside a Scroll Viewer so the user can scroll through the list.
As a precaution, I've set the click event to MouseLeftButtonUp because if I set it to "Down", it will trigger the image code when really, the user just wanted to scroll.
However, even with MouseLeftButtonUp, I've still got the same problem. When I test it, it scrolls but if the finger is still on the same image and if I release my finger, it'll fire off the code behind that image...
How can I overcome this problem? I hope my situation makes clear sense.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许您想使用触摸事件而不是鼠标事件,因为 Windows 移动设备是为触摸而不是鼠标单击而设计的。
Perhaps you want to use touch events rather than mouse events since Windows mobiles devices are designed for touch rather than mouse clicking.