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)

protected:
virtual void OnContextMenuOpening(
	ContextMenuEventArgs^ e
) override

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: