Click or drag to resize

MenuItem Class

Base class for items in a menu
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
public abstract class MenuItem : Menu, 
	ICommandItem

The MenuItem type exposes the following members.

Constructors
  NameDescription
Protected methodMenuItem
Initializes a new instance of the MenuItem class.
Protected methodMenuItem(Command)
Initializes a new instance of the MenuItem class with the specified command.
Top
Properties
  NameDescription
Public propertyCommand
Gets or sets the command to invoke when the menu item is pressed.
Public propertyCommandParameter
Gets or sets the parameter to pass to the Command when executing or determining its CanExecute state.
Public propertyEnabled
Gets or sets a value indicating whether this MenuItem is enabled.
Public propertyOrder
Gets or sets the order that the menu item should use when inserted into a submenu.
Public propertyShortcut
Gets or sets the shortcut key the user can press to activate the menu item.
Public propertyTag
Gets or sets a user-defined tag for the menu item.
Public propertyText
Gets or sets the text of the menu item, with mnemonics identified with &.
Public propertyToolTip
Gets or sets the tool tip of the item.
Top
Methods
  NameDescription
Protected methodGetCallback
Gets an instance of an object used to perform callbacks to the widget from handler implementations
(Overrides WidgetGetCallback.)
Protected methodOnClick
Raises the Click event.
Protected methodOnValidate
Raises the Validate event.
Public methodPerformClick
Performs the click handler for this item.
Top
Events
  NameDescription
Public eventClick
Occurs when the user clicks or selects the menu item.
Public eventValidate
Occurs when the menu item is validated.
Top
Fields
  NameDescription
Public fieldStatic memberValidateEvent
Identifier for handlers when attaching the Validate event.
Top
See Also