Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ContextMenuEventHandler Delegate

Represents the method that will handle the FrameworkElement.ContextMenuOpening and ContextMenuClosing routed events, as well as equivalent ContentElement events.

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

'Declaration
Public Delegate Sub ContextMenuEventHandler ( _
	sender As Object, _
	e As ContextMenuEventArgs _
)

Parameters

sender
Type: System.Object

The object where the event handler is attached.

e
Type: System.Windows.Controls.ContextMenuEventArgs

The event data.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft