Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 2.92 KB

appbarbuttonautomationpeer.md

File metadata and controls

33 lines (21 loc) · 2.92 KB
-api-id -api-type
T:Windows.UI.Xaml.Automation.Peers.AppBarButtonAutomationPeer
winrt class

Windows.UI.Xaml.Automation.Peers.AppBarButtonAutomationPeer

-description

Exposes AppBarButton types to Microsoft UI Automation.

-remarks

The Windows Runtime AppBarButton class creates a new AppBarButtonAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from AppBarButtonAutomationPeer if you are deriving a custom class from AppBarButton and want to add automation support for additional features that you enabled in your custom class. Then override OnCreateAutomationPeer so that it returns your custom peer.

Default peer implementation and overrides in AppBarButtonAutomationPeer

AppBarButtonAutomationPeer has overrides of Core methods such that the associated AutomationPeer methods provide peer-specific information to a Microsoft UI Automation client.

The peer also has other behaviors that are provided by the base FrameworkElementAutomationPeer class. For more info, see "Base implementation in FrameworkElementAutomationPeer" section of Custom automation peers.

-examples

-see-also

ButtonAutomationPeer, IInvokeProvider, AppBarButton