Exposes methods and properties to support Microsoft UI Automation client access to controls that can cycle through a set of states and maintain a particular state. Implement this interface in order to support the capabilities that an automation client requests with a GetPattern call and PatternInterface.Toggle.
The IToggleProvider interface has these types of members:
The IToggleProvider interface has these methods. It also inherits methods from the Object class.
|Toggle||Cycles through the toggle states of a control.|
The IToggleProvider interface has these properties.
|Read-only||Gets the toggle state of the control.|
Controls that do not maintain state when activated, such as buttons, toolbar buttons, and hyperlinks, must implement IInvokeProvider instead. The Toggle pattern has guidelines and conventions that aren't fully documented here. For more info on what this pattern is for, see Toggle Control Pattern.
IToggleProvider is implemented by these existing Windows Runtime classes:
- ToggleButtonAutomationPeer, which is the base class for RadioButtonAutomationPeer and CheckBoxAutomationPeer
Minimum supported client
Minimum supported server
|Windows Server 2012|
Minimum supported phone
|Windows Phone 8.1 [Windows Runtime apps only]|
- IToggleProvider (COM interface)
- Custom automation peers
- Toggle Control Pattern