Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AutomationProperties.AutomationId Attached Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or set the string that uniquely identifies the element to UI automation.

Namespace:  System.Windows.Automation
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

See GetAutomationId, SetAutomationId
<object AutomationProperties.AutomationId="idString"/>

Property Value

Type: System.String
The string that uniquely identifies the element to UI automation.

If the AutomationProperties.AutomationId attached property is not specifically set, it returns the Name property value.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show: