AppBarToggleButtonAutomationPeer
AppBarToggleButtonAutomationPeer
AppBarToggleButtonAutomationPeer
AppBarToggleButtonAutomationPeer
Class
Definition
Exposes AppBarToggleButton types to Microsoft UI Automation.
public : class AppBarToggleButtonAutomationPeer : ToggleButtonAutomationPeer, IAppBarToggleButtonAutomationPeerpublic class AppBarToggleButtonAutomationPeer : ToggleButtonAutomationPeer, IAppBarToggleButtonAutomationPeerPublic Class AppBarToggleButtonAutomationPeer Inherits ToggleButtonAutomationPeer Implements IAppBarToggleButtonAutomationPeer// This API is not available in Javascript.
- Inheritance
-
FrameworkElementAutomationPeerFrameworkElementAutomationPeerFrameworkElementAutomationPeerFrameworkElementAutomationPeerToggleButtonAutomationPeerToggleButtonAutomationPeerToggleButtonAutomationPeerToggleButtonAutomationPeerAppBarToggleButtonAutomationPeerAppBarToggleButtonAutomationPeerAppBarToggleButtonAutomationPeerAppBarToggleButtonAutomationPeer
- 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 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.
- GetClassName returns "AppBarToggleButton".
- GetName does not use the ButtonBaseAutomationPeer behavior that returns a string based on Content. Instead, it looks for a label / LabeledBy value. Otherwise, values from apps should come from AutomationProperties.Name usages in XAML UI definitions, not from values forwarded from the control by the peer. This peer has the base class ToggleButtonAutomationPeer and inherits its behavior other than the overrides indicated above. This includes the pattern support for IToggleProvider and the GetPattern behavior that returns that pattern when requested, and GetAutomationControlType returns AutomationControlType.Button. For more info, see ToggleButtonAutomationPeer.
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
AppBarToggleButtonAutomationPeer(AppBarToggleButton) AppBarToggleButtonAutomationPeer(AppBarToggleButton) AppBarToggleButtonAutomationPeer(AppBarToggleButton) AppBarToggleButtonAutomationPeer(AppBarToggleButton)
Initializes a new instance of the AppBarToggleButtonAutomationPeer class.
public : AppBarToggleButtonAutomationPeer(AppBarToggleButton owner)public AppBarToggleButtonAutomationPeer(AppBarToggleButton owner)Public Sub New(owner As AppBarToggleButton)// This API is not available in Javascript.
The AppBarToggleButton to create the peer for.
- See Also