This topic has not yet been rated - Rate this topic

FrameworkElementAutomationPeer.GetLocalizedControlTypeCore Method

April 12, 2014

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

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)
protected override string GetLocalizedControlTypeCore()

Return Value

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

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.