RaiseEvent:
someButton.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
那么两种方法有什么区别或者说优劣吗?
Automation在元素为disabled状态下会发生异常,而RaiseEvent则可以正常调用
原文:http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1329603&SiteID=1
RaiseEvent:
someButton.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
那么两种方法有什么区别或者说优劣吗?
Automation在元素为disabled状态下会发生异常,而RaiseEvent则可以正常调用
原文:http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1329603&SiteID=1
相关文章: