Shows the context menu at the specified client coordinates.
public:
IAsyncOperation<IUICommand^ >^ ShowAsync(
Point invocationPoint
)
invocationPoint
Type: Point
The coordinates (in DIPs), relative to the window, of the user’s finger or mouse pointer when the oncontextmenu event fired. The menu is placed above and centered on this point.
Note
For VB, C#, and C++, this window is the CoreWindow associated with the thread that is calling the context menu.
Type: IAsyncOperation<IUICommand^ >
A IUICommand object that represents the context menu command that was invoked by the user, after the ShowAsync call completes.
If no command is invoked, ShowAsync returns null.
You can see complete code examples that demonstrate how to create and customize context menus in the Context menu sample on the Microsoft Store app sample home page.
Namespace: Windows.UI.Popups
Metadata: windows.winmd