Shows the context menu in a position relative to the selection.
| 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. |
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.