AutomationProperties.AutomationId attached property
Gets or sets the string that uniquely identifies the element to UI Automation.
<object AutomationProperties.AutomationId="idString" />
XAML Values
- idString
-
The string that uniquely identifies the element to UI Automation.
Remarks
When getting this property in code, use GetAutomationId. When setting this property in code, use SetAutomationId.
If AutomationProperties.AutomationId is not specifically set, it returns the AutomationProperties.Name property value.
Requirements (Windows 10 device family)
|
API contract | |
|---|---|
|
Namespace |
Windows.UI.Xaml.Automation |
|
Metadata |
Requirements (Windows 8.x and Windows Phone 8.x)
|
Minimum supported client |
Windows 8 |
|---|---|
|
Minimum supported server |
Windows Server 2012 |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Runtime apps only] |
|
Namespace |
Windows.UI.Xaml.Automation |
|
Metadata |
|
See also