IRawElementProviderSimple2 interface

Extends the IRawElementProviderSimple interface to enable programmatically invoking context menus.

Methods

The IRawElementProviderSimple2 interface has these methods.

Method Description
IRawElementProviderSimple2::ShowContextMenu Programmatically invokes a context menu on the target element.

Remarks

This interface can be implemented on:

  • Providers that add or override properties or control patterns on a UI element that already has a provider.
If no context menu is available directly on the element on which ShowContextMenu was invoked, the provider should attempt to invoke a context menu on the UI Automation parent of the current item.

Requirements

   
Minimum supported client Windows 8.1 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 R2 [desktop apps | UWP apps]
Target Platform Windows
Header uiautomationcore.h (include UIAutomation.h)