3
我想用鼠标/键盘来伪造操作(或触摸)事件。当我尝试使用,以提高事件:伪造WPF操作事件
RoutedEventArgs e = new RoutedEventArgs(ManipulationStartedEvent,this);
RaiseEvent(e);
给我的错误“无法转换RoutedEventArgs
至ManipulationStartedEventArgs
,并试图为没有构造函数ManipulationStartedEventArgs
创建一个新的ManipulationStartedEventArgs
导致错误
。是否有可能做到这一点?