我想使用鼠标/键盘伪造操纵(或触摸)事件。当我尝试使用以下方式引发事件时:
RoutedEventArgs e = new RoutedEventArgs(ManipulationStartedEvent,this);
RaiseEvent(e);
给我错误“无法转换RoutedEventArgs
to ManipulationStartedEventArgs
,并尝试创建一个新的ManipulationStartedEventArgs
导致错误,因为没有构造函数ManipulationStartedEventArgs
.
是否有可能做到这一点?
因此,答案是通过使用适当的鼠标输入扩展 Touch Device 类来创建自定义触摸设备。
使用 Microsoft Multipoint SDK(多鼠标)的示例 http://blogs.msdn.com/b/ansont/archive/2010/01/30/custom-touch-devices.aspx.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)