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
title
ustringTitle for the menu item.
help
ustringHelp text to display. Will be displayed next to the Title surrounded by parentheses.
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 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
title
ustringTitle for the menu item.
children
MenuItem[]The items in the current menu.
parent
MenuItemThe 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
title
ustringTitle for the menu item.
children
List<MenuItem[]>The list of items in the current menu.
parent
MenuItemThe parent MenuItem of this if exist, otherwise is null.
MenuBarItem(MenuItem[])
Initializes a new MenuBarItem.
public MenuBarItem(MenuItem[] children)
Parameters
children
MenuItem[]The items in the current menu.
MenuBarItem()
Initializes a new MenuBarItem.
public MenuBarItem()