PopupMenu.ShowForSelectionAsync Method

Shows the context menu in a position relative to the selection.

Overload list

Name Description
PopupMenu.ShowForSelectionAsync (Rect) Shows the context menu above the specified selection.
PopupMenu.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 Microsoft Store app sample home page.

See also

Reference

PopupMenu Class

PopupMenu Members

Windows.UI.Popups Namespace