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)
Initializes a new instance of the ContextMenuOpeningEventArgs
class.
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
Gets or sets the ContextMenu that is about to be displayed.
public ContextMenu Menu { get; set; }
Property Value
- ContextMenu:
The ContextMenu that is about to be displayed.