# DataContextChangedBehaviorImpl

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

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

```rust
trait DataContextChangedBehaviorImpl: DisposingBehaviorImpl + $crate::Upcast<DataContextChangedBehavior>
```

The overridable members introduced by the class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/core/data_context_changed_behavior.rs#L22)

## Members

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

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

### on_data_context_changed_event_override

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

Called when the `DataContextChanged` event of the associated object is raised.

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/core/data_context_changed_behavior.rs#L22)

## Trait implementations

- [`DataContextChangedBehaviorImpl`](/docs/0.5.0/api/ferroui-xaml-interactions-custom/trait-datacontextchangedbehaviorimpl/)

## Availability

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