Constructor MenuItem
MenuItem(Key)
Initializes a new instance of MenuItem
public MenuItem(Key shortcut = Key.Null)
Parameters
shortcut
Key
MenuItem(ustring, ustring, Action, Func<bool>, MenuItem, Key)
Initializes a new instance of MenuItem.
public MenuItem(ustring title, ustring help, Action action, Func<bool> canExecute = null, MenuItem parent = null, Key shortcut = Key.Null)
Parameters
title
ustringTitle for the menu item.
help
ustringHelp text to display.
action
ActionAction to invoke when the menu item is activated.
canExecute
Func<bool>Function to determine if the action can currently be executed.
parent
MenuItemThe Parent of this menu item.
shortcut
KeyThe Shortcut keystroke combination.