# prepare_candidate

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

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

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

Completes markup values on a detached framework root after its resource
declarations have been populated. Does not raise Initialized or invoke an
application constructor. Validate while the candidate still has its parent
and resource graph, before a reload adapter detaches its replacement content.

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

## Availability

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