# ButtonMenuItem 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(ButtonMenuItem.IHandler)]
public class ButtonMenuItem : MenuItem, ISubmenu, IBindableWidgetContainer
```

Menu item for a button / submenu

**Derived types:** [SubMenuItem](https://eto.picoe.ca/api/type/eto.forms.submenuitem.md)

## Constructors

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

## Properties

- [IBindableWidgetContainer.Children](https://eto.picoe.ca/api/type/eto.forms.buttonmenuitem/eto-forms-ibindablewidgetcontainer-children.md): (obsolete)
- [Image](https://eto.picoe.ca/api/type/eto.forms.buttonmenuitem/image.md): Gets or sets the image to show for the menu item.
- [Items](https://eto.picoe.ca/api/type/eto.forms.buttonmenuitem/items.md): Gets the collection of menu items.
- [Trim](https://eto.picoe.ca/api/type/eto.forms.buttonmenuitem/trim.md): Gets a value indicating whether this sub menu should trim its child menu items when loaded onto a form

## Methods

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

## Inherited Members

- From [MenuItem](https://eto.picoe.ca/api/type/eto.forms.menuitem.md): [Command](https://eto.picoe.ca/api/type/eto.forms.menuitem/command.md), [CommandParameter](https://eto.picoe.ca/api/type/eto.forms.menuitem/commandparameter.md), [Enabled](https://eto.picoe.ca/api/type/eto.forms.menuitem/enabled.md), [Order](https://eto.picoe.ca/api/type/eto.forms.menuitem/order.md), [Shortcut](https://eto.picoe.ca/api/type/eto.forms.menuitem/shortcut.md), [Tag](https://eto.picoe.ca/api/type/eto.forms.menuitem/tag.md), [Text](https://eto.picoe.ca/api/type/eto.forms.menuitem/text.md), [ToolTip](https://eto.picoe.ca/api/type/eto.forms.menuitem/tooltip.md), [Visible](https://eto.picoe.ca/api/type/eto.forms.menuitem/visible.md), [Click](https://eto.picoe.ca/api/type/eto.forms.menuitem/click.md), [Validate](https://eto.picoe.ca/api/type/eto.forms.menuitem/validate.md), [GetCallback](https://eto.picoe.ca/api/type/eto.forms.menuitem/getcallback.md), [OnClick](https://eto.picoe.ca/api/type/eto.forms.menuitem/onclick.md), [OnValidate](https://eto.picoe.ca/api/type/eto.forms.menuitem/onvalidate.md), [PerformClick](https://eto.picoe.ca/api/type/eto.forms.menuitem/performclick.md), [PerformValidate](https://eto.picoe.ca/api/type/eto.forms.menuitem/performvalidate.md), [Unbind](https://eto.picoe.ca/api/type/eto.forms.menuitem/unbind.md)
- From [Menu](https://eto.picoe.ca/api/type/eto.forms.menu.md): [OnPreLoad](https://eto.picoe.ca/api/type/eto.forms.menu/onpreload.md)
- 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), [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), [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)
