Constructor MenuItemv2
MenuItemv2()
Creates a new instance of MenuItemv2.
public MenuItemv2()
MenuItemv2(View?, Command, string?, string?, Menuv2?)
Creates a new instance of MenuItemv2, binding it to targetView
and
command
. The Key targetView
has bound to command
will be used as Key.
public MenuItemv2(View? targetView, Command command, string? commandText = null, string? helpText = null, Menuv2? subMenu = null)
Parameters
targetView
ViewThe View that
command
will be invoked on when user does something that causes the Shortcut's Accept event to be raised.command
CommandThe Command to invoke on
targetView
. The KeytargetView
has bound tocommand
will be used as KeycommandText
stringThe text to display for the command.
helpText
stringThe help text to display.
subMenu
Menuv2The submenu to display when the user selects this menu item.
MenuItemv2(string?, string?, Action?, Key?)
public MenuItemv2(string? commandText = null, string? helpText = null, Action? action = null, Key? key = null)
Parameters
MenuItemv2(string, Key, Action?)
public MenuItemv2(string commandText, Key key, Action? action = null)
Parameters
MenuItemv2(string?, string?, Menuv2?)
public MenuItemv2(string? commandText = null, string? helpText = null, Menuv2? subMenu = null)