FrameworkElementAutomationPeer.GetLocalizedControlTypeCore 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. ]

Returns a localized human-readable string that identifies a control type. The control type is for the owner type that is associated with this FrameworkElementAutomationPeer. This method is called by GetLocalizedControlType.

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

Syntax

Protected Overrides Function GetLocalizedControlTypeCore As String
protected override string GetLocalizedControlTypeCore()

Return Value

Type: System..::.String
A localized string that contains the type name of the owner control.

Remarks

Notes to Inheritors

The return value for this method in the FrameworkElementAutomationPeer implementation comes from an internal property store. Generally this returns the localized string form of the AutomationControlType..::.Custom enumeration value, for instance the string "custom" for en-us. Overrides of GetLocalizedControlTypeCore should use control resources or other techniques that permit the strings returned by this method to be localizable without having full access to the control source code.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

FrameworkElementAutomationPeer Class

System.Windows.Automation.Peers Namespace