Expand Minimize

AutomationPeer.GetLocalizedControlTypeCore method

Applies to Windows and Windows Phone

Provides the peer's behavior when a Microsoft UI Automation client calls GetLocalizedControlType or an equivalent UI Automation client API.

Syntax


protected virtual string GetLocalizedControlTypeCore()

Parameters

This method has no parameters.

Return value

Type: System.String [.NET] | Platform::String [C++]

The type of the control, as a string that is localized to be suitable for direct presentation to users by assistive technologies.

Remarks

The "Core" methods are the standard implementations that perform the default action of an associated UI Automation client-callable method. You can override any of the "Core" methods to return alternative values in a custom automation peer. In this case, GetLocalizedControlTypeCore is invoked any time that GetLocalizedControlType is called.

This method is very rarely overridden by peers. So long as you provide a value for GetAutomationControlTypeCore, all the enumerated constant names from AutomationControlType are already available in localized form to UI Automation clients. The necessary translated strings are part of the UI Automation support in every Microsoft Windows client. However, if you specify Custom as the control type, you must support a localized control type string that represents the role of the element (for example, "color picker" for a custom control that enables users to choose and specify colors).

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Automation.Peers
Windows::UI::Xaml::Automation::Peers [C++]

Metadata

Windows.winmd

See also

AutomationPeer
GetLocalizedControlType
Custom automation peers

 

 

Show:
© 2014 Microsoft