GetLocalizedControlType Method

AutomationPeer.GetLocalizedControlType Method

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 a localized string that represents the control type, for the control that is associated with this automation peer. The localized string parallels a AutomationControlType value.

Namespace:  System.Windows.Automation.Peers
Assembly:  System.Windows (in System.Windows.dll)

Public Function GetLocalizedControlType As String

Return Value

Type: System.String
A string that reports the localized type of the associated control.

This implementation does nothing more than calling GetLocalizedControlTypeCore.

A UI Automation client such as a screen reader might use the GetLocalizedControlType value as a suffix to the UI Automation Name value. For example, if a Button has content of "OK", and that content is promoted by Button peer behavior to be the name, the screen reader might read out "OK Button". The "OK" portion comes from a UI Automation Name, the "Button" portion comes from a GetLocalizedControlType value or a similar UI Automation technique for reading LocalizedControlType.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft