PopupMenu.ShowForSelectionAsync | showForSelectionAsync methods

Applies to Windows and Windows Phone

Shows the context menu in a position relative to the selection.
This member is overloaded. For complete information about this member, including syntax and usage, click a name in the overload list.

Overload list

MethodDescription
ShowForSelectionAsync(Rect) Shows the context menu above the specified selection.
ShowForSelectionAsync(Rect, Placement) Shows the context menu in the preferred placement relative to the specified selection.

Remarks

You can see code examples that demonstrate how to create and customize context menus in the Context menu sample on the Windows Store app sample home page.

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.Popups
Windows::UI::Popups [C++]

Metadata

Windows.winmd

See also

PopupMenu

 

 

Show:
© 2014 Microsoft