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:
- System.Object System.EventArgs System.Windows.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 | 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. |
menu | System.Windows.Controls.ContextMenu | The System.Windows.Controls.ContextMenu that is about to be displayed. |
Properties
Menu
Gets or sets the System.Windows.Controls.ContextMenu that is about to be displayed.
public ContextMenu Menu { get; set; }
Property Value
- System.Windows.Controls.ContextMenu:
The System.Windows.Controls.ContextMenu that is about to be displayed.
Inherited Members
- System.EventArgs.Empty
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()