# PreviewRequest

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer/struct-previewrequest/

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

```rust
struct PreviewRequest
```

A factory receives the actual authored document and base URI. It may instantiate a real
registered code-behind class and call `populate` to apply XAML before wiring its handlers.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_host.rs#L39)

## Members

- [`source`](#struct_field-source)
- [`preview_source`](#struct_field-preview_source)
- [`uri`](#struct_field-uri)
- [`configuration`](#struct_field-configuration)
- [`populate`](#function-populate)

<a id="struct_field-source"></a>

### source

```rust
source: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_host.rs#L40)

<a id="struct_field-preview_source"></a>

### preview_source

```rust
preview_source: Option<String>
```

Designer-only loading source. Factories continue to inspect the exact authored
`source`; `populate` loads this projection when design-time overrides are present.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_host.rs#L43)

<a id="struct_field-uri"></a>

### uri

```rust
uri: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_host.rs#L44)

<a id="struct_field-configuration"></a>

### configuration

```rust
configuration: ferroui_markup_xaml::RuntimeXamlLoaderConfiguration
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_host.rs#L45)

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

### populate

```rust
fn populate(self: &Self, root: Option<BoxedValue>) -> Result<BoxedValue, String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_host.rs#L48)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Same`

## Availability

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