Name Attached Property

AutomationProperties.Name 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 sets the automation name of the element.

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

See GetName, SetName
<object AutomationProperties.Name="nameString" .../>

Property Value

Type: System.String
The name of the element.

AutomationProperties.Name is the most likely automation property to be picked up by UI automation clients. The default peer implementations for most controls include logic that attempts to walk into the automation tree to find text content, and to use that text content as a control-generated default for AutomationProperties.Name.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft