In This Article

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)

Provides event arguments for customizing a bar control's context or drop-down menu.

public BarMenuEventArgs(BarMenuKind kind)
Parameter Type Description
kind BarMenuKind

A BarMenuKind indicating the menu kind.

Properties

Kind

A BarMenuKind indicating the menu kind.

public BarMenuKind Kind { get; }

Property Value

BarMenuKind

Menu

The ItemsControl whose menu items are about to be displayed.

public ItemsControl? Menu { get; set; }

Property Value

ItemsControl

Owner

The object that owns the menu (e.g., the object whose context menu is being displayed).

public object? Owner { get; set; }

Property Value

object

Inherited Members

Extension Methods