In This Article

ContextMenuOpeningEventArgs Class

Provides event arguments for a context menu opening event, where the menu can be customized prior to display.

public class ContextMenuOpeningEventArgs : RoutedEventArgs
Inheritance:
object EventArgs RoutedEventArgs object

Constructors

ContextMenuOpeningEventArgs(RoutedEvent, object, ContextMenu?)

Provides event arguments for a context menu opening event, where the menu can be customized prior to display.

public ContextMenuOpeningEventArgs(RoutedEvent routedEvent, object source, ContextMenu? menu)
Parameter Type Description
routedEvent RoutedEvent

The routed event identifier for this event arguments instance.

source object

An alternate source that will be reported when the event is handled.

menu ContextMenu

The ContextMenu that is about to be displayed.

Properties

Menu

The ContextMenu that is about to be displayed.

public ContextMenu? Menu { get; set; }

Property Value

ContextMenu

Inherited Members

Extension Methods