# validate_root_template

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

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

```rust
fn validate_root_template(root: &ferroui_base::StyledElement) -> Result<(), crate::XamlLoadError>
```

Builds a root's selected template against the detached resource graph.
Does not attach it, raise TemplateApplied, or replace the visible template.
Custom template builders with external effects require their own reload adapter.

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

## Availability

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