Permalink
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (33 sloc) 1.51 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
ContextMenu
03/30/2017
.net-framework
dotnet-wpf
article
AutoGeneratedOrientationPage
ContextMenu control [WPF]
menus [WPF], context
controls [WPF], ContextMenu
2f40b2bb-b702-4706-9fc4-10bcfd7cc35d
73
dotnet-bot
dotnetcontent
wpickett

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 [!INCLUDETLA#tla_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 states
ContextMenu in different states

In This Section

ContextMenu Overview

Reference

xref:System.Windows.Controls.ContextMenu

Related Sections