# MenuBar class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[ContentProperty("Items")]
[Handler(MenuBar.IHandler)]
public class MenuBar : Menu, ISubmenu, IBindableWidgetContainer
```

Menu bar for a form

## Constructors

- [MenuBar](https://eto.picoe.ca/api/type/eto.forms.menubar/ctor.md): (3 overloads) Initializes a new instance of the [MenuBar](https://eto.picoe.ca/api/type/eto.forms.menubar.md) class.

## Properties

- [AboutItem](https://eto.picoe.ca/api/type/eto.forms.menubar/aboutitem.md): Gets or sets the item to show an about dialog for the application
- [ApplicationItems](https://eto.picoe.ca/api/type/eto.forms.menubar/applicationitems.md): Gets the item collection for the [MenuBar.ApplicationMenu](https://eto.picoe.ca/api/type/eto.forms.menubar/applicationmenu.md), to easily add items declaratively/programatically.
- [ApplicationMenu](https://eto.picoe.ca/api/type/eto.forms.menubar/applicationmenu.md): Gets the menu that contains application-level items.
- [IBindableWidgetContainer.Children](https://eto.picoe.ca/api/type/eto.forms.menubar/eto-forms-ibindablewidgetcontainer-children.md)
- [HelpItems](https://eto.picoe.ca/api/type/eto.forms.menubar/helpitems.md): Gets the item collection for the [MenuBar.HelpMenu](https://eto.picoe.ca/api/type/eto.forms.menubar/helpmenu.md), to easily add items declaratively/programatically.
- [HelpMenu](https://eto.picoe.ca/api/type/eto.forms.menubar/helpmenu.md): Gets the help menu for the application for showing help items
- [IncludeSystemItems](https://eto.picoe.ca/api/type/eto.forms.menubar/includesystemitems.md): Gets or sets which system items will be automatically included with the menu.
- [Items](https://eto.picoe.ca/api/type/eto.forms.menubar/items.md): Gets the collection of menu items
- [QuitItem](https://eto.picoe.ca/api/type/eto.forms.menubar/quititem.md): Gets or sets the quit item for the application.
- [SystemCommands](https://eto.picoe.ca/api/type/eto.forms.menubar/systemcommands.md): Gets the system commands for the menu.
- [Trim](https://eto.picoe.ca/api/type/eto.forms.menubar/trim.md): Gets or sets a value indicating whether this [MenuBar](https://eto.picoe.ca/api/type/eto.forms.menubar.md) will trim the items when set to a form

## Methods

- [OnLoad](https://eto.picoe.ca/api/type/eto.forms.menubar/onload.md): Called when the menu is assigned to a control/window
- [OnPreLoad](https://eto.picoe.ca/api/type/eto.forms.menubar/onpreload.md): Called before the menu is assigned to a control/window
- [OnUnLoad](https://eto.picoe.ca/api/type/eto.forms.menubar/onunload.md): Called when the menu is removed from a control/window

## Inherited Members

- From [BindableWidget](https://eto.picoe.ca/api/type/eto.forms.bindablewidget.md): [Bindings](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/bindings.md), [DataContext](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/datacontext.md), [IsDataContextChanging](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/isdatacontextchanging.md), [Parent](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/parent.md), [Parents](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/parents.md), [DataContextChanged](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/datacontextchanged.md), [FindParent](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/findparent.md), [OnDataContextChanged](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/ondatacontextchanged.md), [Unbind](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/unbind.md), [UpdateBindings](https://eto.picoe.ca/api/type/eto.forms.bindablewidget/updatebindings.md)
- From [Widget](https://eto.picoe.ca/api/type/eto.widget.md): [ControlObject](https://eto.picoe.ca/api/type/eto.widget/controlobject.md), [Handler](https://eto.picoe.ca/api/type/eto.widget/handler.md), [ID](https://eto.picoe.ca/api/type/eto.widget/id.md), [IsDisposed](https://eto.picoe.ca/api/type/eto.widget/isdisposed.md), [NativeHandle](https://eto.picoe.ca/api/type/eto.widget/nativehandle.md), [Platform](https://eto.picoe.ca/api/type/eto.widget/platform.md), [Properties](https://eto.picoe.ca/api/type/eto.widget/properties.md), [Style](https://eto.picoe.ca/api/type/eto.widget/style.md), [StyleChanged](https://eto.picoe.ca/api/type/eto.widget/stylechanged.md), [Dispose](https://eto.picoe.ca/api/type/eto.widget/dispose.md), [GetCallback](https://eto.picoe.ca/api/type/eto.widget/getcallback.md), [Initialize](https://eto.picoe.ca/api/type/eto.widget/initialize.md), [OnStyleChanged](https://eto.picoe.ca/api/type/eto.widget/onstylechanged.md), [ToString](https://eto.picoe.ca/api/type/eto.widget/tostring.md)
