# load_xaml

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/xaml/function-load_xaml/

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

```rust
fn load_xaml(text: &str) -> Result<ferroui_base::Ref<ferroui_controls::Control>, ferroui_markup_xaml::XamlLoadError>
```

Loads XAML text whose root is a control, with the run-time loader.
Its named controls are found with `find_control` / `get_control` of
the root.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/xaml.rs#L37)

## Availability

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