2011-02-14 64 views
3

我想用鼠标/键盘来伪造操作(或触摸)事件。当我尝试使用,以提高事件:伪造WPF操作事件

RoutedEventArgs e = new RoutedEventArgs(ManipulationStartedEvent,this); 
RaiseEvent(e); 

给我的错误“无法转换RoutedEventArgsManipulationStartedEventArgs,并试图为没有构造函数ManipulationStartedEventArgs创建一个新的ManipulationStartedEventArgs导致错误

。是否有可能做到这一点?

回答