Click or drag to resize

MenuBar Class

Menu bar for a form
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
[ContentPropertyAttribute("Items")]
public class MenuBar : Menu, ISubmenu, 
	IBindableWidgetContainer

The MenuBar type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAboutItem
Gets or sets the item to show an about dialog for the application
Public propertyApplicationItems
Gets the item collection for the ApplicationMenu, to easily add items declaratively/programatically.
Public propertyApplicationMenu
Gets the menu that contains application-level items.
Public propertyHelpItems
Gets the item collection for the HelpMenu, to easily add items declaratively/programatically.
Public propertyHelpMenu
Gets the help menu for the application for showing help items
Public propertyIncludeSystemItems
Gets or sets which system items will be automatically included with the menu.
Public propertyItems
Gets the collection of menu items
Public propertyQuitItem
Gets or sets the quit item for the application.
Public propertySystemCommands
Gets the system commands for the menu.
Public propertyTrim
Gets or sets a value indicating whether this MenuBar will trim the items when set to a form
Top
Methods
  NameDescription
Protected methodOnLoad
Called when the menu is assigned to a control/window
(Overrides MenuOnLoad(EventArgs).)
Protected methodOnPreLoad
Called before the menu is assigned to a control/window
(Overrides MenuOnPreLoad(EventArgs).)
Protected methodOnUnLoad
Called when the menu is removed from a control/window
(Overrides MenuOnUnLoad(EventArgs).)
Top
Extension Methods
  NameDescription
Public Extension MethodGetChildren
Gets an enumeration of all children of the specified submenu.
(Defined by SubmenuExtensions.)
Top
See Also