Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 2.34 KB

microsoft_ui_xaml_automation_peers.md

File metadata and controls

39 lines (26 loc) · 2.34 KB
-api-id -api-type
N:Microsoft.UI.Xaml.Automation.Peers
winrt namespace

Microsoft.UI.Xaml.Automation.Peers

-description

Defines support types for the Microsoft UI Automation infrastructure.

Note

This namespace requires the Microsoft.UI.Xaml.Controls NuGet package, a part of the Microsoft Windows UI Library.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

-remarks

WinUI controls, and other UI elements, implement UI Automation support to report roles and values. You can use UI Automation tools to examine the role and value information, or you can review the AutomationPeer implementations of each control. The available roles in a UI Automation framework are defined in the AutomationControlType enumeration. UI Automation clients, such as assistive technologies, can obtain role information by calling methods that the UI Automation framework exposes through the control's AutomationPeer.

-see-also

Custom automation peers, Expose basic accessibility information, Accessibility Insights

-examples

Tip

The WinUI 3 Gallery and WinUI 2 Gallery apps include interactive examples of most WinUI 3 and WinUI 2 controls, features, and functionality.

If installed already, open them by clicking the following links: WinUI 3 Gallery or WinUI 2 Gallery.

If they are not installed, you can download the WinUI 3 Gallery and the WinUI 2 Gallery from the Microsoft Store.

You can also get the source code for both from GitHub (use the main branch for WinUI 3 and the winui2 branch for WinUI 2).