# ExpanderImpl

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

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

```rust
trait ExpanderImpl: ContentControlImpl + $crate::Upcast<Expander>
```

The overridable members introduced by the class.

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

## Members

- [`on_collapsed`](#function-on_collapsed)
- [`on_collapsing`](#function-on_collapsing)
- [`on_expanded`](#function-on_expanded)
- [`on_expanding`](#function-on_expanding)
- [`on_coerce_is_expanded`](#function-on_coerce_is_expanded)

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

### on_collapsed

```rust
fn on_collapsed(this: &Self, event_args: &RoutedEventArgs)
```

Raises the `Collapsed` event.

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

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

### on_collapsing

```rust
fn on_collapsing(this: &Self, event_args: &CancelRoutedEventArgs)
```

Raises the `Collapsing` event.

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

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

### on_expanded

```rust
fn on_expanded(this: &Self, event_args: &RoutedEventArgs)
```

Raises the `Expanded` event.

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

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

### on_expanding

```rust
fn on_expanding(this: &Self, event_args: &CancelRoutedEventArgs)
```

Raises the `Expanding` event.

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

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

### on_coerce_is_expanded

```rust
fn on_coerce_is_expanded(this: &Self, value: bool) -> bool
```

Called when the `IsExpanded` property has to be coerced.

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

## Trait implementations

- [`ExpanderImpl`](/docs/0.5.0/api/ferroui-controls/trait-expanderimpl/)

## Availability

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