# AddEventHandlerCallback

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

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

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

The handler an [`IAddEventHandler`](/docs/0.5.0/api/ferroui-xaml-interactivity/trait-iaddeventhandler/) subscribes: it receives the sender (if the event has one)
and the event args, untyped (`Action<object?, object>`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/events/contract/i_add_event_handler.rs#L9)

## Availability

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