Skip to main content

NativeMenuItem Properties

Properties

CommandGets or sets the command associated with the menu item.
CommandParameterGets or sets the parameter to pass to the Command property of a MenuItem.
GestureGets or sets the input gesture that will be displayed in the menu item.
HasClickHandlers 
HeaderGets or sets the content of the control's header.
IconGets or sets the icon that appears in a MenuItem.
InheritanceParentGets or sets the parent object that inherited AvaloniaProperty values are inherited from.
(Inherited from AvaloniaObject)
IsCheckedGets or sets if menu item is checked when ToggleType is CheckBox or Radio.
IsEnabledGets or sets a value indicating whether the control is enabled for user interaction.
IsVisibleGets or sets a value indicating whether this menu item is visible.
Item(AvaloniaProperty)Gets or sets the value of a AvaloniaProperty.
(Inherited from AvaloniaObject)
Item(IndexerDescriptor)Gets or sets a binding for a AvaloniaProperty.
(Inherited from AvaloniaObject)
Menu 
Parent
(Inherited from NativeMenuItemBase)
ToggleTypeGets toggle type of the menu item.
ToolTipGets 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.

See Also

Reference

NativeMenuItem Class
Avalonia.Controls Namespace