MenuItem Constructor (Command) |
Initializes a new instance of the
MenuItem class with the specified command.
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax protected MenuItem(
Command command
)
Protected Sub New (
command As Command
)
new :
command : Command -> MenuItem
Parameters
- command
- Type: Eto.FormsCommand
Command to initialize the menu item with.
Remarks
This links the menu item with the specified command, and will trigger
Execute
when the user clicks the item, and enable/disable the menu item based on
Enabled.
This is not a weak link, so you should not re-use the Command instance for other menu items if you are disposing
this menu item.
See Also