IInvokeProvider interface

Applies to Windows and Windows Phone

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.

Syntax

Public Interface IInvokeProvider

Attributes

[Version(0x06020000)]
[WebHostHidden()]

Members

The IInvokeProvider interface has these types of members:

Methods

The IInvokeProvider interface has these methods. It also inherits methods from the Object class.

MethodDescription
Invoke Sends a request to activate a control and initiate its single, unambiguous action.

 

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Automation.Provider
Windows::UI::Xaml::Automation::Provider [C++]

Metadata

Windows.winmd

See also

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

 

 

Show:
© 2014 Microsoft