# subscribe_plain_event

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactivity/helpers/member_lookup/function-subscribe_plain_event/

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

```rust
fn subscribe_plain_event(event: &'static ferroui_base::metadata::MarkupEvent, instance: &ferroui_base::BoxedValue, handler: ferroui_base::metadata::MarkupDelegate) -> Option<std::rc::Rc<dyn IDisposable>>
```

Subscribes `handler` to a plain event of `instance`; the subscription is ended by disposing the
returned handle (`EventInfo.AddEventHandler` / `RemoveEventHandler`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/helpers/member_lookup.rs#L56)

## Availability

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