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
targetViewViewThe View that
commandwill be invoked on when user does something that causes the Shortcut's Accept event to be raised.commandCommandThe Command to invoke on
targetView. The KeytargetViewhas bound tocommandwill be used as KeycommandTextstringThe text to display for the command.
helpTextstringThe help text to display.
subMenuMenuv2The 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)