private void HandleStructureChangedEvent(object sender, UIA.StructureChangedEventArgs structureChangedEventArgs) { var basicAutomationElement = new TestBasicAutomationElement((TestAutomation)Automation, (UIA.AutomationElement)sender); var senderElement = new AutomationElement(basicAutomationElement); HandleStructureChangedEvent(senderElement, (StructureChangeType)structureChangedEventArgs.StructureChangeType, structureChangedEventArgs.GetRuntimeId()); }
private void HandlePropertyChangedEvent(object sender, UIA.AutomationPropertyChangedEventArgs automationPropertyChangedEventArgs) { var basicAutomationElement = new TestBasicAutomationElement((TestAutomation)Automation, (UIA.AutomationElement)sender); var senderElement = new AutomationElement(basicAutomationElement); var propertyId = PropertyId.Find(Automation.AutomationType, automationPropertyChangedEventArgs.Property.Id); HandlePropertyChangedEvent(senderElement, propertyId, automationPropertyChangedEventArgs.NewValue); }
private void HandleAutomationEvent(object sender, UIA.AutomationEventArgs automationEventArgs) { var basicAutomationElement = new TestBasicAutomationElement((TestAutomation)Automation, (UIA.AutomationElement)sender); var senderElement = new AutomationElement(basicAutomationElement); var @event = EventId.Find(AutomationType.UIA2, automationEventArgs.EventId.Id); HandleAutomationEvent(senderElement, @event); }
public ValuePattern(TestBasicAutomationElement basicAutomationElement, NativeValuePattern nativePattern) : base(basicAutomationElement, nativePattern) { }