mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 09:06:04 +02:00
* net-current-v30plus-md.md * net-current-v40plus-md.md * tla2sharptla-ui-md.md * tla2sharptla-uiautomation-md.md * tla2sharptla-winclient-md.md * tla2sharptla-xaml-md.md * tlasharptla-ui-md.md * tlasharptla-uiautomation-md.md * tlasharptla-winclient-md.md * tlasharptla-xaml-md.md * fix warnings
27 lines
1.2 KiB
Markdown
27 lines
1.2 KiB
Markdown
---
|
||
title: "ContextMenu"
|
||
ms.date: "03/30/2017"
|
||
f1_keywords:
|
||
- "AutoGeneratedOrientationPage"
|
||
helpviewer_keywords:
|
||
- "ContextMenu control [WPF]"
|
||
- "menus [WPF], context"
|
||
- "controls [WPF], ContextMenu"
|
||
ms.assetid: 2f40b2bb-b702-4706-9fc4-10bcfd7cc35d
|
||
---
|
||
# ContextMenu
|
||
The <xref:System.Windows.Controls.ContextMenu> allows a control to display a <xref:System.Windows.Controls.Menu> that is specific to the context of the control. Typically, the <xref:System.Windows.Controls.ContextMenu> is exposed in the user interface (UI) through the right mouse button or through the keyboard’s menu button.
|
||
|
||
The following figure illustrates a <xref:System.Windows.Controls.ContextMenu> in two different states: the default state and the open state. In the default state, the control is collapsed. When the right mouse button is pressed over the parent of the menu, the control expands and displays the menu items.
|
||
|
||

|
||
ContextMenu in different states
|
||
|
||
## In This Section
|
||
[ContextMenu Overview](contextmenu-overview.md)
|
||
|
||
## Reference
|
||
<xref:System.Windows.Controls.ContextMenu>
|
||
|
||
## Related Sections
|