OnContextMenuOpening Method
TOC
Collapse the table of content
Expand the table of content

DataGrid.OnContextMenuOpening Method (ContextMenuEventArgs)

.NET Framework (current version)
 

Selects a cell if its context menu is opened.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

override OnContextMenuOpening : 
        e:ContextMenuEventArgs -> unit

Parameters

e
Type: System.Windows.Controls.ContextMenuEventArgs

The item whose context menu was opened.

This method is called when a context menu is opened on an unselected cell or row.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft