# AttachedToVisualTreeBehaviorImpl

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

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

```rust
trait AttachedToVisualTreeBehaviorImpl: DisposingBehaviorImpl + $crate::Upcast<AttachedToVisualTreeBehavior>
```

The overridable members introduced by the class.

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

## Members

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

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

### on_attached_to_visual_tree_override

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

Called after the associated object is attached to the visual tree.

Returns a resource disposed when the associated object leaves the visual tree or the
behavior is detached.

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

## Trait implementations

- [`AttachedToVisualTreeBehaviorImpl`](/docs/0.5.0/api/ferroui-xaml-interactions-custom/trait-attachedtovisualtreebehaviorimpl/)

## Availability

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