BarMenuEventArgs Class
Provides event arguments for customizing a bar control's context or drop-down menu.
public class BarMenuEventArgs : CancelRoutedEventArgs
- Inheritance:
- System.Object System.EventArgs System.Windows.RoutedEventArgs CancelRoutedEventArgs Object
Constructors
BarMenuEventArgs(BarMenuKind)
Initializes a new instance of the BarMenuEventArgs class.
public BarMenuEventArgs(BarMenuKind kind)
| Parameter | Type | Description |
|---|---|---|
| kind | BarMenuKind | A BarMenuKind indicating the menu kind. |
Properties
Kind
Gets a BarMenuKind indicating the menu kind.
public BarMenuKind Kind { get; }
Property Value
- BarMenuKind:
A BarMenuKind indicating the menu kind.
Menu
Gets or sets the System.Windows.Controls.ItemsControl whose menu items are about to be displayed.
public ItemsControl Menu { get; set; }
Property Value
- System.Windows.Controls.ItemsControl:
The System.Windows.Controls.ItemsControl whose menu items are about to be displayed.
Owner
Gets or sets the object that owns the menu (e.g., the object whose context menu is being displayed).
public object Owner { get; set; }
Property Value
- System.Object:
The object that owns the menu.
Inherited Members
- CancelRoutedEventArgs.Cancel
- 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()