我发现类AutomationFactory在Silverlight中,当你想使用COM对象订阅的事件是真正有用的:有没有类似于Silverlight的AutomationFactory for .NET的类?
AutomationEvent quitEvent = AutomationFactory.GetEvent(word,"Quit");
quitEvent.EventRaised += new EventHandler<AutomationEventArgs>(quitEvent_EventRaised);
- 你知不知道,可以从.NET可以使用任何同级?
- 您是否知道使用自动化绑定事件的方式?
在此先感谢。
它不是解决方案,System.Windows.Automation仅用于WPF UI – devi 2012-08-27 13:32:16