Skip to main content
ContextMenuEventHandler Delegate
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public delegate void ContextMenuEventHandler(
	object sender,
	ContextMenuEventArgs e
)
public delegate void ContextMenuEventHandler(
	Object^ sender,
	ContextMenuEventArgs^ e
)
type ContextMenuEventHandler = 
    delegate of 
        sender:Object *
        e:ContextMenuEventArgs -> unit
Public Delegate Sub ContextMenuEventHandler (
	sender As Object,
	e As ContextMenuEventArgs
)

Parameters

sender
Type:

The object where the event handler is attached.

e
Type:

The event data.

.NET Framework
Available since 3.0
Return to top