Constructor MenuBarItem
MenuBarItem(ustring, ustring, Action, Func<bool>, MenuItem)
Initializes a new MenuBarItem as a MenuItem.
public MenuBarItem(ustring title, ustring help, Action action, Func<bool> canExecute = null, MenuItem parent = null)
Parameters
titleustringTitle for the menu item.
helpustringHelp text to display. Will be displayed next to the Title surrounded by parentheses.
actionActionAction to invoke when the menu item is activated.
canExecuteFunc<bool>Function to determine if the action can currently be executed.
parentMenuItemThe parent MenuItem of this if exist, otherwise is null.
MenuBarItem(ustring, MenuItem[], MenuItem)
Initializes a new MenuBarItem.
public MenuBarItem(ustring title, MenuItem[] children, MenuItem parent = null)
Parameters
titleustringTitle for the menu item.
childrenMenuItem[]The items in the current menu.
parentMenuItemThe parent MenuItem of this if exist, otherwise is null.
MenuBarItem(ustring, List<MenuItem[]>, MenuItem)
Initializes a new MenuBarItem with separate list of items.
public MenuBarItem(ustring title, List<MenuItem[]> children, MenuItem parent = null)
Parameters
titleustringTitle for the menu item.
childrenList<MenuItem[]>The list of items in the current menu.
parentMenuItemThe parent MenuItem of this if exist, otherwise is null.
MenuBarItem(MenuItem[])
Initializes a new MenuBarItem.
public MenuBarItem(MenuItem[] children)
Parameters
childrenMenuItem[]The items in the current menu.
MenuBarItem()
Initializes a new MenuBarItem.
public MenuBarItem()