Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A control needs to be uniquely identified by specifying some property condition to distinguish it from other controls. This topic describes the groupings that help specify the condition.
Conditions to uniquely identify the controls
NoCondition:NoConditionshould be given to specify the first element of the tree.PropertyCondition: It specifies the actual property and the expected value. The following is an example.<PropertyCondition Name="ControlType">ControlType.Pane</PropertyCondition>This condition specifies that
ControlTypeshould be"ControlType.Pane".AndCondition:This groups the property conditions and results in TruePositive if all the property conditions are satisfied.
A minimum of two conditions must be given inside an
AndConditiongroup. The following is an example.<AndCondition Id="SearchCondition"> <PropertyCondition Name="Name">System and Security</PropertyCondition> <PropertyCondition Name="ControlType">Hyperlink</PropertyCondition> </AndCondition>This condition specifies that both the
ControlTypeandNameproperties need to be satisfied. TheNameand theValuecan be determined from the UISpy details of the control.
OrCondition:This groups the property conditions and results in
TruePositiveif any one of the property conditions is satisfied.A minimum of two conditions should be given inside the
OrConditiongroup. The following is an example.<OrCondition Id="SearchCondition"> <PropertyCondition Name="Name">System and Security</PropertyCondition> <PropertyCondition Name="ControlType">Hyperlink</PropertyCondition> </OrCondition>This condition specifies that either
ControlTypeorNameproperty needs to be satisfied. TheNameand theValuecan be determined from the UISpy details of the control.
NotCondition:This groups the property conditions and results in
TruePositiveif the property conditions are not satisfied.Only one condition can be given inside a
NotConditiongroup. The following is an example.<NotCondition Id="SearchCondition"> <PropertyCondition Name="Name">System and Security</PropertyCondition> </NotCondition>This condition specifies if the
Nameproperty condition is not satisfied. TheNameand theValuecan be determined from the UISpy details of the control.
NestedCondition:The nested grouping must be specified, such as an
OrConditionin anAndCondition. The final child condition should be aPropertyCondition.Any property of following type can be included in the condition:
System.BooleanSystem.StringSystem.Windows.RectSystem.Windows.PointSystem.Windows.Automation.OrientationTypeSystem.Windows.Automation.ControlType