Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 2.49 KB

iinvokeprovider.md

File metadata and controls

29 lines (18 loc) · 2.49 KB
-api-id -api-type
T:Windows.UI.Xaml.Automation.Provider.IInvokeProvider
winrt interface

Windows.UI.Xaml.Automation.Provider.IInvokeProvider

-description

Exposes a method to support Microsoft UI Automation access to controls that initiate or perform a single, unambiguous action and do not maintain state when activated. Implement this interface in order to support the capabilities that an automation client requests with a GetPattern call and PatternInterface.Invoke.

-remarks

An example of a control that meets the guidelines of IInvokeProvider is Button. Controls that do maintain state, such as check boxes and radio buttons, must instead implement IToggleProvider and ISelectionProvider respectively. Controls implement IInvokeProvider if the same behavior is not exposed through another control pattern provider. For more info on what this pattern is for, see Invoke Control Pattern.

IInvokeProvider is implemented by the existing Windows Runtime automation peers for Button (ButtonAutomationPeer), RepeatButton (RepeatButtonAutomationPeer) and HyperlinkButton (HyperlinkButtonAutomationPeer).

If you implement IInvokeProvider for a list/list items scenario and a control that uses ListViewBase, implement IInvokeProvider for the list and not for individual items.

The IInvokeProvider pattern doesn't have a pattern property identifier class, the only API to implement is Invoke, a method.

-examples

-see-also

IInvokeProvider (COM interface), Button, Custom automation peers, Invoke Control Pattern