# EventHandler

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactivity/type_alias-eventhandler/

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

```rust
type EventHandler<TEventArgs> = std::rc::Rc<dyn Fn(Option<&ferroui_base::BoxedValue>, &TEventArgs) -> ()>
```

The handler [`FuncAddEventHandler`](/docs/0.5.0/api/ferroui-xaml-interactivity/struct-funcaddeventhandler/) gives to the subscription function: the sender and the
typed event args (`EventHandler<TEventArgs>`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/events/handlers/func_event_handler.rs#L43)

## Availability

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