# ItemsControlContainerEventsBehaviorImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactions-custom/trait-itemscontrolcontainereventsbehaviorimpl/

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

```rust
trait ItemsControlContainerEventsBehaviorImpl: DisposingBehaviorImpl + $crate::Upcast<ItemsControlContainerEventsBehavior>
```

The overridable members introduced by the class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/items_control/items_control_container_events_behavior.rs#L23)

## Members

- [`on_preparing_container`](#function-on_preparing_container)
- [`on_container_prepared`](#function-on_container_prepared)
- [`on_container_index_changed`](#function-on_container_index_changed)
- [`on_container_clearing`](#function-on_container_clearing)

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

### on_preparing_container

```rust
fn on_preparing_container(this: &Self, sender: &ItemsControl, e: &ContainerPreparedEventArgs)
```

Called before the container is prepared.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/items_control/items_control_container_events_behavior.rs#L23)

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

### on_container_prepared

```rust
fn on_container_prepared(this: &Self, sender: &ItemsControl, e: &ContainerPreparedEventArgs)
```

Called after the container has been prepared.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/items_control/items_control_container_events_behavior.rs#L23)

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

### on_container_index_changed

```rust
fn on_container_index_changed(this: &Self, sender: &ItemsControl, e: &ContainerIndexChangedEventArgs)
```

Called when the index of a container has changed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/items_control/items_control_container_events_behavior.rs#L23)

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

### on_container_clearing

```rust
fn on_container_clearing(this: &Self, sender: &ItemsControl, e: &ContainerClearingEventArgs)
```

Called when a container is being cleared.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/items_control/items_control_container_events_behavior.rs#L23)

## Trait implementations

- [`ItemsControlContainerEventsBehaviorImpl`](/docs/0.5.0/api/ferroui-xaml-interactions-custom/trait-itemscontrolcontainereventsbehaviorimpl/)

## Availability

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