Windows.UI.Xaml.Automation.Peers.AppBarToggleButtonAutomationPeer

June 22, 2022 ยท View on GitHub

-description

Exposes AppBarToggleButton types to Microsoft UI Automation.

-remarks

The Windows Runtime AppBarToggleButton class creates a new AppBarToggleButtonAutomationPeer as its OnCreateAutomationPeer definition. Derive your automation peer from AppBarToggleButtonAutomationPeer if you are deriving a custom class from AppBarToggleButton 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 AppBarToggleButtonAutomationPeer

AppBarToggleButtonAutomationPeer 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

ToggleButtonAutomationPeer, IToggleProvider, AppBarToggleButton