# MenuBaseImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/trait-menubaseimpl/

**trait** · [`ferroui-controls`](/docs/0.5.0/api/ferroui-controls/) · v0.5.0

```rust
trait MenuBaseImpl: SelectingItemsControlImpl + $crate::Upcast<MenuBase>
```

The overridable members introduced by the class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/menu_base.rs#L29)

## Members

- [`close`](#function-close)
- [`open`](#function-open)
- [`on_submenu_opened`](#function-on_submenu_opened)

<a id="function-close"></a>

### close

```rust
fn close(this: &Self)
```

Closes the menu.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/menu_base.rs#L29)

<a id="function-open"></a>

### open

```rust
fn open(this: &Self)
```

Opens the menu.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/menu_base.rs#L29)

<a id="function-on_submenu_opened"></a>

### on_submenu_opened

```rust
fn on_submenu_opened(this: &Self, e: &RoutedEventArgs)
```

Called when a submenu opens somewhere in the menu.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/menu_base.rs#L29)

## Trait implementations

- [`MenuBaseImpl`](/docs/0.5.0/api/ferroui-controls/trait-menubaseimpl/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
