public void HandleTextEditTextChangedEvent(UIA.IUIAutomationElement sender, UIA.TextEditChangeType textEditChangeType, string[] eventStrings) { var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender); var senderElement = new AutomationElement(frameworkElement); HandleTextEditTextChangedEvent(senderElement, (TextEditChangeType)textEditChangeType, eventStrings); }
public void HandleStructureChangedEvent(UIA.IUIAutomationElement sender, UIA.StructureChangeType changeType, int[] runtimeId) { var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender); var senderElement = new SHAutomationElement(frameworkElement); HandleStructureChangedEvent(senderElement, (StructureChangeType)changeType, runtimeId); }
public void HandleFocusChangedEvent(UIA.IUIAutomationElement sender) { var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender); var senderElement = new AutomationElement(frameworkElement); HandleFocusChangedEvent(senderElement); }
public void HandleAutomationEvent(UIA.IUIAutomationElement sender, int eventId) { var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender); var senderElement = new SHAutomationElement(frameworkElement); var @event = EventId.Find(AutomationType.UIA3, eventId); HandleAutomationEvent(senderElement, @event); }
public void HandlePropertyChangedEvent(UIA.IUIAutomationElement sender, int propertyId, object newValue) { var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender); var senderElement = new SHAutomationElement(frameworkElement); var property = PropertyId.Find(Automation.AutomationType, propertyId); HandlePropertyChangedEvent(senderElement, property, newValue); }
public void HandleNotificationEvent(UIA.IUIAutomationElement sender, UIA.NotificationKind notificationKind, UIA.NotificationProcessing notificationProcessing, string displayString, string activityId) { var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender); var senderElement = new AutomationElement(frameworkElement); HandleNotificationEvent(senderElement, (NotificationKind)notificationKind, (NotificationProcessing)notificationProcessing, displayString, activityId); }
public void HandleActiveTextPositionChangedEvent(UIA.IUIAutomationElement sender, UIA.IUIAutomationTextRange range) { var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender); var senderElement = new AutomationElement(frameworkElement); var rangeElement = new UIA3TextRange((UIA3Automation)Automation, range); HandleActiveTextPositionChangedEvent(senderElement, rangeElement); }