BarMenuEventArgs Class
Provides event arguments for customizing a bar control's context or drop-down menu.
public class BarMenuEventArgs : CancelRoutedEventArgs
- Inheritance:
- object EventArgs 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 ItemsControl whose menu items are about to be displayed.
public ItemsControl Menu { get; set; }
Property Value
- ItemsControl:
The 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).