Exemplo n.º 1
0
 private bool Equals(AutomationElementProperty other)
 {
     return Equals(other.Value, Value) && Equals(other.propertyType.Id, propertyType.Id) &&
            Equals(other.propertyType.ProgrammaticName, other.propertyType.ProgrammaticName);
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 4
0
 private bool Equals(AutomationElementProperty other)
 {
     return(Equals(other.Value, Value) && Equals(other.propertyType.Id, propertyType.Id) &&
            Equals(other.propertyType.ProgrammaticName, other.propertyType.ProgrammaticName));
 }
Exemplo n.º 5
0
        public static SearchCondition CreateForNativeProperty(AutomationProperty automationProperty, string value)
        {
            var automationElementProperty = new AutomationElementProperty(value, automationProperty.ProgrammaticName, automationProperty);

            return(new SimpleSearchCondition(automationElement => automationElement.GetCurrentPropertyValue(automationProperty), automationElementProperty));
        }
Exemplo n.º 6
0
 public SimpleSearchCondition(PropertyValue propertyValueDelegate,
                              AutomationElementProperty automationElementProperty)
 {
     this.propertyValueDelegate     = propertyValueDelegate;
     this.automationElementProperty = automationElementProperty;
 }