在桌面应用程序中启动 [英] OnManipulationStarted in a dektop application

查看:76
本文介绍了在桌面应用程序中启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在WP7上,我使用了(感谢Petzold)重写OnManipulationStarted事件,

On the WP7, I used (thanks to Petzold) the override OnManipulationStarted event,

当任何东西触摸屏幕时,无论哪个UIElement是源,哪个都会触发.作为触摸的通用包,这非常有用.

Which would fire when anything touched the screen, regardless of what UIElement was the source.  This was very useful as a generic catch-all for touches.

在我的C#/WFP桌面程序中似乎没有触发相同的替代项.

The same override does not seem to fire in my C#/WFP desktop program.

如何在不手动将事件分配给每个元素的情况下实现相同的功能?

How can the same functionality be achieved without manually assigning events to every element?

谢谢

推荐答案

您可以使用pointpress和pointmove事件代替它.
You can use pointpress and pointmove event to instead of it.


这篇关于在桌面应用程序中启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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