Windows apps
Collapse the table of content
Expand the table of content

Context menu

Note  Pre-Release Content: This topic is currently being adapted to apply to both Windows 8.1 and Windows Phone (code-named "Blue"). To view the Windows 8.1 version of this topic, click here.

A sample of what a standard context menu control looks like

Control description

A context menu displays a short list of commands and options that are available to the user in the current context.

Usage guidance

A context menu is typically hidden from view and is an efficient means of conserving screen space. Use a context menu if there is a small set of contextual commands and options that apply to the selected object or window region. Context menus have a specific order: most frequently used items first (primary commands), transfer commands next, and properties last. This order provides efficiency and predictability.

Examples

A screenshot that illustrates the standard context menu control

Related APIs

Adding context menus (Windows Store apps using JavaScript and HTML)

PopupMenu class

 

 

Show:
© 2017 Microsoft