Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 2.41 KB

itoggleprovider.md

File metadata and controls

32 lines (21 loc) · 2.41 KB
-api-id -api-type
T:Windows.UI.Xaml.Automation.Provider.IToggleProvider
winrt interface

Windows.UI.Xaml.Automation.Provider.IToggleProvider

-description

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.

-remarks

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:

Use TogglePatternIdentifiers if you want to reference the IToggleProvider pattern properties from control code when you fire automation events or call RaisePropertyChangedEvent.

-examples

-see-also

TogglePatternIdentifiers, IToggleProvider (COM interface), Custom automation peers, Toggle Control Pattern