Esempio n. 1
0
 public void Start()
 {
     // Might give problems because inspect is registered as well.
     // MS recommends to call UIA commands on a thread outside of an UI thread.
     Task.Factory.StartNew(() => _eventHandler = _automation.RegisterFocusChangedEvent(OnFocusChanged));
 }
Esempio n. 2
0
 /// <summary>
 /// Unregisters the given focus changed event handler.
 /// </summary>
 public abstract void UnregisterFocusChangedEvent(FocusChangedEventHandlerBase eventHandler);
Esempio n. 3
0
 public void Stop()
 {
     _eventHandler.Dispose();
     _eventHandler = null;
 }