# SplitButtonImpl

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

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

```rust
trait SplitButtonImpl: ContentControlImpl + $crate::Upcast<SplitButton>
```

The overridable members introduced by the class.

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

## Members

- [`internal_is_checked`](#function-internal_is_checked)
- [`on_click_primary`](#function-on_click_primary)
- [`on_click_secondary`](#function-on_click_secondary)
- [`on_flyout_opened`](#function-on_flyout_opened)
- [`on_flyout_closed`](#function-on_flyout_closed)

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

### internal_is_checked

```rust
fn internal_is_checked(this: &Self) -> bool
```

A value indicating whether the button is currently checked.

This member exists only for the derived toggle split button and
is unused (false) within the split button. Doing this allows the
two controls to share a default style.

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

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

### on_click_primary

```rust
fn on_click_primary(this: &Self, e: Option<&RoutedEventArgs>)
```

Invokes the `Click` event when the primary button part is
clicked. `e` are the event args from the internal click event.

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

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

### on_click_secondary

```rust
fn on_click_secondary(this: &Self, e: Option<&RoutedEventArgs>)
```

Invoked when the secondary button part is clicked. `e` are the
event args from the internal click event.

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

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

### on_flyout_opened

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

Invoked when the split button's flyout is opened.

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

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

### on_flyout_closed

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

Invoked when the split button's flyout is closed.

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

## Trait implementations

- [`SplitButtonImpl`](/docs/0.5.0/api/ferroui-controls/trait-splitbuttonimpl/)

## Availability

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