Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 3.13 KB

checkboxautomationpeer.md

File metadata and controls

33 lines (23 loc) · 3.13 KB
-api-id -api-type
T:Microsoft.UI.Xaml.Automation.Peers.CheckBoxAutomationPeer
winrt class

Microsoft.UI.Xaml.Automation.Peers.CheckBoxAutomationPeer

-description

Exposes CheckBox types to Microsoft UI Automation.

-remarks

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

CheckBoxAutomationPeer 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, ButtonBaseAutomationPeer, CheckBox, IToggleProvider, Custom automation peers