# IRootObjectProvider

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-markup-xaml/trait-irootobjectprovider/

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

```rust
trait IRootObjectProvider
```

Gives access to the root object of the document being loaded.

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

## Members

- [`root_object`](#function-root_object)
- [`intermediate_root_object`](#function-intermediate_root_object)

<a id="function-root_object"></a>

### root_object

```rust
fn root_object(self: &Self) -> Option<BoxedValue>
```

The root object of the document (for content built from a template:
the root of the document that declares the template).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/xaml_types.rs#L25)

<a id="function-intermediate_root_object"></a>

### intermediate_root_object

```rust
fn intermediate_root_object(self: &Self) -> Option<BoxedValue>
```

The root object of the part of the document being built: inside a
template, the root of the template content.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/xaml_types.rs#L29)

## Trait implementations

- [`IRootObjectProvider`](/docs/0.5.0/api/ferroui-markup-xaml/trait-irootobjectprovider/)

## Availability

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