--- 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 allows a control to display a that is specific to the context of the control. Typically, the is exposed in the [!INCLUDE[TLA#tla_ui](../../../includes/tlasharptla-ui-md.md)] through the right mouse button or through the keyboard’s menu button. The following figure illustrates a 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 states](./media/ss-ctl-contextmenu.png "SS_CTL_contextmenu") ContextMenu in different states ## In This Section [ContextMenu Overview](contextmenu-overview.md) ## Reference ## Related Sections