private static IUIAutomationElement FindDialogByPropertyWorker( IntPtr visualStudioHWnd, string propertyValue, AutomationProperty nameProperty) { var vsAutomationElement = Helper.Automation.ElementFromHandle(visualStudioHWnd); var elementCondition = Helper.Automation.CreateAndConditionFromArray( new[] { Helper.Automation.CreatePropertyCondition(nameProperty.Id, propertyValue), Helper.Automation.CreatePropertyCondition(AutomationElementIdentifiers.ControlTypeProperty.Id, ControlType.Window.Id), }); return(vsAutomationElement.FindFirst(TreeScope.TreeScope_Children, elementCondition)); }
public void RaisePropertyChangedEvent(System.Windows.Automation.AutomationProperty property, Object oldValue, Object newValue) { }
public AutomationPropertyChangedEventArgs(System.Windows.Automation.AutomationProperty property, object oldValue, object newValue) : base(default(System.Windows.Automation.AutomationEvent)) { }