NativeMenuItem Class

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public class NativeMenuItem : NativeMenuItemBase, 
	INativeMenuItemExporterEventsImplBridge
Inheritance
Object    AvaloniaObject    NativeMenuItemBase    NativeMenuItem
Derived
Implements
INativeMenuItemExporterEventsImplBridge

Constructors

NativeMenuItemInitializes a new instance of the NativeMenuItem class
NativeMenuItem(String)Initializes a new instance of the NativeMenuItem class

Properties

Command Gets or sets the command associated with the menu item.
CommandParameter Gets or sets the parameter to pass to the Command property of a MenuItem.
Gesture Gets or sets the input gesture that will be displayed in the menu item.
HasClickHandlers 
Header Gets or sets the content of the control's header.
Icon Gets or sets the icon that appears in a MenuItem.
InheritanceParent
(Inherited from AvaloniaObject)
IsChecked Gets or sets if menu item is checked when ToggleType is CheckBox or Radio.
IsEnabled 
IsVisible Gets or sets a value indicating whether this menu item is visible.
Item
(Inherited from AvaloniaObject)
Item
(Inherited from AvaloniaObject)
Menu 
Parent
(Inherited from NativeMenuItemBase)
ToggleType Gets toggle type of the menu item.
ToolTip Gets or sets the tooltip associated with the menu item. This may not be supported by the native menu provider, but will be passed on to the non-native fallback menu item if used.

Methods

Bind(AvaloniaProperty, IBinding)
(Inherited from AvaloniaObject)
Bind(AvaloniaProperty, IObservableObject, BindingPriority)
(Inherited from AvaloniaObject)
Bind``1(DirectPropertyBaseUMP, IObservableUMP)
(Inherited from AvaloniaObject)
Bind``1(DirectPropertyBaseUMP, IObservableBindingValueUMP)
(Inherited from AvaloniaObject)
Bind``1(DirectPropertyBaseUMP, IObservableObject)
(Inherited from AvaloniaObject)
Bind``1(StyledPropertyUMP, IObservableUMP, BindingPriority)
(Inherited from AvaloniaObject)
Bind``1(StyledPropertyUMP, IObservableBindingValueUMP, BindingPriority)
(Inherited from AvaloniaObject)
Bind``1(StyledPropertyUMP, IObservableObject, BindingPriority)
(Inherited from AvaloniaObject)
CheckAccess
(Inherited from AvaloniaObject)
ClearValue(AvaloniaProperty)
(Inherited from AvaloniaObject)
ClearValue``1(AvaloniaPropertyUMP)
(Inherited from AvaloniaObject)
ClearValue``1(DirectPropertyBaseUMP)
(Inherited from AvaloniaObject)
ClearValue``1(StyledPropertyUMP)
(Inherited from AvaloniaObject)
CoerceValue(AvaloniaProperty)
(Inherited from AvaloniaObject)
Equals(Object)
(Inherited from AvaloniaObject)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetBaseValue``1(StyledPropertyUMP)
(Inherited from AvaloniaObject)
GetHashCode
(Inherited from AvaloniaObject)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetValue(AvaloniaProperty)
(Inherited from AvaloniaObject)
GetValue``1(DirectPropertyBaseUMP)
(Inherited from AvaloniaObject)
GetValue``1(StyledPropertyUMP)
(Inherited from AvaloniaObject)
IsAnimating(AvaloniaProperty)
(Inherited from AvaloniaObject)
IsSet(AvaloniaProperty)
(Inherited from AvaloniaObject)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnPropertyChanged(AvaloniaPropertyChangedEventArgs)
(Overrides AvaloniaObject.OnPropertyChanged(AvaloniaPropertyChangedEventArgs))
OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs)
(Inherited from AvaloniaObject)
RaisePropertyChanged``1(DirectPropertyBaseUMP, UMP, UMP)
(Inherited from AvaloniaObject)
SetAndRaise``1(DirectPropertyBaseUMP, UMP, UMP)
(Inherited from AvaloniaObject)
SetCurrentValue(AvaloniaProperty, Object)
(Inherited from AvaloniaObject)
SetCurrentValue``1(StyledPropertyUMP, UMP)
(Inherited from AvaloniaObject)
SetValue(AvaloniaProperty, Object, BindingPriority)
(Inherited from AvaloniaObject)
SetValue``1(DirectPropertyBaseUMP, UMP)
(Inherited from AvaloniaObject)
SetValue``1(StyledPropertyUMP, UMP, BindingPriority)
(Inherited from AvaloniaObject)
ToStringReturns a string that represents the current object.
(Inherited from Object)
UpdateDataValidation(AvaloniaProperty, BindingValueType, Exception)
(Inherited from AvaloniaObject)
VerifyAccess
(Inherited from AvaloniaObject)

Events

Click Occurs when a NativeMenuItem is clicked.
PropertyChanged
(Inherited from AvaloniaObject)

Fields

CommandParameterProperty Defines the CommandParameter property.
CommandProperty Defines the Command property.
GestureProperty Defines the InputGesture property.
HeaderProperty Defines the Header property.
IconProperty Defines the Icon property.
IsCheckedProperty Defines the IsChecked property.
IsEnabledProperty 
IsVisibleProperty Defines the IsVisible property.
MenuProperty 
ToggleTypeProperty Defines the ToggleType property.
ToolTipProperty Defines the ToolTip property.

See Also