Partager via


IInvokeProvider Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Exposes a method to support UI automation access to controls that initiate or perform a single, unambiguous action and do not maintain state when activated.

Namespace:  System.Windows.Automation.Provider
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Interface IInvokeProvider
public interface IInvokeProvider

The IInvokeProvider type exposes the following members.

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone Invoke Sends a request to activate a control and initiate its single, unambiguous action.

Top

Remarks

This interface is implemented on a UI automation provider that must support the Invoke control pattern.

Controls implement IInvokeProvider if the same behavior is not exposed through another control pattern provider. For example, if the Invoke method on a control performs the same action as the Expand or Collapse method, the control should not implement IInvokeProvider.

In the existing Silverlight control set, controls such as Button use the Invoke pattern.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.