private bool Equals(AutomationElementProperty other) { return Equals(other.Value, Value) && Equals(other.propertyType.Id, propertyType.Id) && Equals(other.propertyType.ProgrammaticName, other.propertyType.ProgrammaticName); }
public static SearchCondition CreateForNativeProperty(AutomationProperty automationProperty, bool value) { var automationElementProperty = new AutomationElementProperty(value, automationProperty.ProgrammaticName, automationProperty); return new SimpleSearchCondition(automationElement => automationElement.GetCurrentPropertyValue(automationProperty), automationElementProperty); }
public SimpleSearchCondition(PropertyValue propertyValueDelegate, AutomationElementProperty automationElementProperty) { this.propertyValueDelegate = propertyValueDelegate; this.automationElementProperty = automationElementProperty; }
private bool Equals(AutomationElementProperty other) { return(Equals(other.Value, Value) && Equals(other.propertyType.Id, propertyType.Id) && Equals(other.propertyType.ProgrammaticName, other.propertyType.ProgrammaticName)); }
public static SearchCondition CreateForNativeProperty(AutomationProperty automationProperty, string value) { var automationElementProperty = new AutomationElementProperty(value, automationProperty.ProgrammaticName, automationProperty); return(new SimpleSearchCondition(automationElement => automationElement.GetCurrentPropertyValue(automationProperty), automationElementProperty)); }