public void HandleStructureChangedEvent(UIA.IUIAutomationElement sender, UIA.StructureChangeType changeType, int[] runtimeId) { var basicAutomationElement = new UIA3BasicAutomationElement((UIA3Automation)Automation, sender); var senderElement = new AutomationElement(basicAutomationElement); HandleStructureChangedEvent(senderElement, (StructureChangeType)changeType, runtimeId); }
public UIA3BasicAutomationElement(UIA3Automation automation, Interop.UIAutomationClient.IUIAutomationElement nativeElement) : base(automation) { this.Automation = automation; this.NativeElement = nativeElement; this.Patterns = new UIA3AutomationElementPatternValues(this); }
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 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 HandleFocusChangedEvent(UIA.IUIAutomationElement sender) { var basicAutomationElement = new UIA3BasicAutomationElement((UIA3Automation)Automation, sender); var senderElement = new AutomationElement(basicAutomationElement); HandleFocusChangedEvent(senderElement); }
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 HandleAutomationEvent(UIA.IUIAutomationElement sender, int eventId) { var basicAutomationElement = new UIA3BasicAutomationElement((UIA3Automation)Automation, sender); var senderElement = new AutomationElement(basicAutomationElement); var @event = EventId.Find(AutomationType.UIA3, eventId); HandleAutomationEvent(senderElement, @event); }
public void HandlePropertyChangedEvent(UIA.IUIAutomationElement sender, int propertyId, object newValue) { var basicAutomationElement = new UIA3BasicAutomationElement((UIA3Automation)Automation, sender); var senderElement = new AutomationElement(basicAutomationElement); 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); }
public UIA3FrameworkAutomationElement(UIA3Automation automation, UIA.IUIAutomationElement nativeElement) : base(automation) { Automation = automation; NativeElement = nativeElement; }
public UIA3BasicAutomationElement(UIA3Automation automation, UIA.IUIAutomationElement nativeElement) : base(automation) { Automation = automation; NativeElement = nativeElement; Patterns = new UIA3AutomationElementPatternValues(this); }
public AutomationElement WrapNativeElement(UIA.IUIAutomationElement nativeElement) { return(nativeElement == null ? null : new AutomationElement(new UIA3BasicAutomationElement(this, nativeElement))); }