GetLocalizedControlTypeCore method
TOC
Collapse the table of content
Expand the table of content

AutomationPeer.GetLocalizedControlTypeCore method

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

Syntax


Protected Overridable Function GetLocalizedControlTypeCore() As String

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

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 (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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:
© 2016 Microsoft