# DisposingBehaviorImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactivity/trait-disposingbehaviorimpl/

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

```rust
trait DisposingBehaviorImpl: StyledElementBehaviorImpl + $crate::Upcast<DisposingBehavior>
```

The overridable members introduced by the class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/behaviors/disposing_behavior.rs#L21)

## Members

- [`on_attached_override`](#function-on_attached_override)

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

### on_attached_override

```rust
fn on_attached_override(this: &Self) -> Rc<dyn IDisposable>
```

Called after the behavior is attached to the associated object.

Returns a disposable resource to be disposed when the behavior is detached.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/behaviors/disposing_behavior.rs#L21)

## Trait implementations

- [`DisposingBehaviorImpl`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-disposingbehaviorimpl/)

## Availability

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