# code_behind

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-markup-xaml/reload_events/function-code_behind/

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

```rust
fn code_behind(provider: &dyn IServiceProvider, root: &ferroui_base::metadata::MarkupValue) -> Option<ferroui_base::BoxedValue>
```

Translate only this component's root; nested component contexts keep their own
roots and subscriptions. Deferred contexts inherit the same weak service.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/reload_events.rs#L260)

## Availability

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