NativeMenuItem Class
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public class NativeMenuItem : NativeMenuItemBase,
INativeMenuItemExporterEventsImplBridge
Public Class NativeMenuItem
Inherits NativeMenuItemBase
Implements INativeMenuItemExporterEventsImplBridge
type NativeMenuItem =
class
inherit NativeMenuItemBase
interface INativeMenuItemExporterEventsImplBridge
end
Inheritance | Object → AvaloniaObject → NativeMenuItemBase → NativeMenuItem |
Derived | Avalonia.Controls.NativeMenuItemSeparator |
Implements | INativeMenuItemExporterEventsImplBridge |
Constructors
NativeMenuItem() | Initializes 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 | Gets or sets the parent object that inherited AvaloniaProperty values are inherited from. (Inherited from AvaloniaObject) |
IsChecked | Gets or sets if menu item is checked when ToggleType is CheckBox or Radio. |
IsEnabled | Gets or sets a value indicating whether the control is enabled for user interaction. |
IsVisible | Gets 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) |
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
Events
Click | Occurs when a NativeMenuItem is clicked. |
PropertyChanged | Raised when a AvaloniaProperty value changes on this object. (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 | Defines the IsEnabled property. |
IsVisibleProperty | Defines the IsVisible property. |
MenuProperty | |
ToggleTypeProperty | Defines the ToggleType property. |
ToolTipProperty | Defines the ToolTip property. |