Compartir a través de


FrameworkElementAutomationPeer.GetLocalizedControlTypeCore Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

'Declaration
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

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.