# ToggleButtonImpl

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

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

```rust
trait ToggleButtonImpl: ButtonImpl + $crate::Upcast<ToggleButton>
```

The overridable members introduced by the class.

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

## Members

- [`toggle`](#function-toggle)
- [`on_is_checked_changed`](#function-on_is_checked_changed)

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

### toggle

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

Toggles the `IsChecked` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/toggle_button.rs#L27)

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

### on_is_checked_changed

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

Called when `IsChecked` changes. `e` are the event arguments for
the routed event that is raised by the default implementation of
this method.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/toggle_button.rs#L27)

## Trait implementations

- [`ToggleButtonImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-togglebuttonimpl/)

## Availability

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