Constructor MenuItem
MenuItem(Key?)
Initializes a new instance of MenuItem
public MenuItem(Key? shortcutKey = null)
Parameters
shortcutKey
Key
MenuItem(string?, string?, Action?, Func<bool>?, MenuItem?, Key?)
Initializes a new instance of MenuItem.
public MenuItem(string? title, string? help, Action? action, Func<bool>? canExecute = null, MenuItem? parent = null, Key? shortcutKey = null)
Parameters
title
stringTitle for the menu item.
help
stringHelp 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.
shortcutKey
KeyThe ShortcutKey keystroke combination.