# EventTriggerBaseImpl

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

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

```rust
trait EventTriggerBaseImpl: StyledElementBehaviorImpl + $crate::Upcast<EventTriggerBase>
```

The overridable members introduced by the class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/triggers/event_trigger_base.rs#L42)

## Members

- [`attached_to_visual_tree`](#function-attached_to_visual_tree)
- [`on_event`](#function-on_event)

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

### attached_to_visual_tree

```rust
fn attached_to_visual_tree(this: &Self, sender: Option<&BoxedValue>, event_args: &BoxedValue)
```

Raised when the event fires (by its name in the reference, the handler of the default
event `AttachedToVisualTree`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/triggers/event_trigger_base.rs#L42)

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

### on_event

```rust
fn on_event(this: &Self, event_args: Option<&BoxedValue>)
```

Executes the actions associated with this behavior.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/triggers/event_trigger_base.rs#L42)

## Trait implementations

- [`EventTriggerBaseImpl`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-eventtriggerbaseimpl/)

## Availability

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