Constructor MenuItem
MenuItem(Key)
Initializes a new instance of MenuItem
public MenuItem(Key shortcut = Key.Null)
Parameters
shortcutKey
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
titleustringTitle for the menu item.
helpustringHelp text to display.
actionActionAction to invoke when the menu item is activated.
canExecuteFunc<bool>Function to determine if the action can currently be executed.
parentMenuItemThe Parent of this menu item.
shortcutKeyThe Shortcut keystroke combination.