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);
 }
示例#3
0
        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);
        }
示例#4
0
        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);
        }
示例#5
0
        public void HandleFocusChangedEvent(UIA.IUIAutomationElement sender)
        {
            var basicAutomationElement = new UIA3BasicAutomationElement((UIA3Automation)Automation, sender);
            var senderElement          = new AutomationElement(basicAutomationElement);

            HandleFocusChangedEvent(senderElement);
        }
示例#6
0
        public void HandleFocusChangedEvent(UIA.IUIAutomationElement sender)
        {
            var frameworkElement = new UIA3FrameworkAutomationElement((UIA3Automation)Automation, sender);
            var senderElement    = new AutomationElement(frameworkElement);

            HandleFocusChangedEvent(senderElement);
        }
示例#7
0
        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);
        }
示例#8
0
        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);
        }
示例#12
0
 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);
 }
示例#14
0
 public AutomationElement WrapNativeElement(UIA.IUIAutomationElement nativeElement)
 {
     return(nativeElement == null ? null : new AutomationElement(new UIA3BasicAutomationElement(this, nativeElement)));
 }