In This Article

ContextMenuItemRoutedEventArgs Class

Provides event arguments for a System.Windows.Controls.ContextMenu-related routed event.

public class ContextMenuItemRoutedEventArgs : ItemRoutedEventArgs<ContextMenu>
Inheritance:
System.Object System.EventArgs System.Windows.RoutedEventArgs ItemRoutedEventArgs<System.Windows.Controls.ContextMenu> Object

Constructors

ContextMenuItemRoutedEventArgs(ContextMenu)

Initializes a new instance of the ContextMenuItemRoutedEventArgs class.

public ContextMenuItemRoutedEventArgs(ContextMenu item)
Parameter Type Description
item System.Windows.Controls.ContextMenu

The item that is the focus of this event.

ContextMenuItemRoutedEventArgs(ContextMenu, RoutedEvent)

Initializes a new instance of the ContextMenuItemRoutedEventArgs class.

public ContextMenuItemRoutedEventArgs(ContextMenu item, RoutedEvent routedEvent)
Parameter Type Description
item System.Windows.Controls.ContextMenu

The item that is the focus of this event.

routedEvent System.Windows.RoutedEvent

The routed event identifier for this event arguments instance.

ContextMenuItemRoutedEventArgs(ContextMenu, RoutedEvent, Object)

Initializes a new instance of the ContextMenuItemRoutedEventArgs class.

public ContextMenuItemRoutedEventArgs(ContextMenu item, RoutedEvent routedEvent, object source)
Parameter Type Description
item System.Windows.Controls.ContextMenu

The item that is the focus of this event.

routedEvent System.Windows.RoutedEvent

The routed event identifier for this event arguments instance.

source System.Object

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

Inherited Members