CheckBoxAutomationPeer
CheckBoxAutomationPeer
CheckBoxAutomationPeer
CheckBoxAutomationPeer
Class
Definition
public : class CheckBoxAutomationPeer : ToggleButtonAutomationPeer, ICheckBoxAutomationPeerpublic class CheckBoxAutomationPeer : ToggleButtonAutomationPeer, ICheckBoxAutomationPeerPublic Class CheckBoxAutomationPeer Inherits ToggleButtonAutomationPeer Implements ICheckBoxAutomationPeer// This API is not available in Javascript.
- Inheritance
-
FrameworkElementAutomationPeerFrameworkElementAutomationPeerFrameworkElementAutomationPeerFrameworkElementAutomationPeerToggleButtonAutomationPeerToggleButtonAutomationPeerToggleButtonAutomationPeerToggleButtonAutomationPeerCheckBoxAutomationPeerCheckBoxAutomationPeerCheckBoxAutomationPeerCheckBoxAutomationPeer
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Inherited Members
Inherited methods
Inherited properties
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.
- GetPattern reports that the peer provides pattern support for PatternInterface.Toggle (IToggleProvider ). This is actually coming from the ToggleButtonAutomationPeer base class; CheckBoxAutomationPeer doesn't override the Core method further.
- GetClassName returns "CheckBox".
- GetAutomationControlType returns AutomationControlType.CheckBox.
- The peer can fire the PropertyChanged automation event when ToggleState of the peer and owner control changes. This peer has the base class ButtonBaseAutomationPeer and inherits its behavior other than the overrides indicated above. Notably, GetName returns a string value based on examining the current Content. For more info, see ButtonBaseAutomationPeer.
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.
Constructors
CheckBoxAutomationPeer(CheckBox) CheckBoxAutomationPeer(CheckBox) CheckBoxAutomationPeer(CheckBox) CheckBoxAutomationPeer(CheckBox)
Initializes a new instance of the CheckBoxAutomationPeer class.
public : CheckBoxAutomationPeer(CheckBox owner)public CheckBoxAutomationPeer(CheckBox owner)Public Sub New(owner As CheckBox)// This API is not available in Javascript.