# PreviewTarget

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/enum-previewtarget/

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

```rust
enum PreviewTarget
```

What a design-time preview is created for; see
`Design::create_preview_with_control`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/design.rs#L390)

## Members

- [`Style`](#variant-style)
- [`DataTemplate`](#variant-datatemplate)
- [`Object`](#variant-object)
- [`Other`](#variant-other)

<a id="variant-style"></a>

### Style

```rust
Style(std::rc::Rc<dyn IStyle>)
```

A style that is not an object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/design.rs#L392)

<a id="variant-datatemplate"></a>

### DataTemplate

```rust
DataTemplate(std::rc::Rc<dyn IDataTemplate>)
```

A data template.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/design.rs#L394)

<a id="variant-object"></a>

### Object

```rust
Object(ferroui_base::Ref<ferroui_base::FerroObject>)
```

An object: a control, a style, a resource dictionary, the
application, ...

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/design.rs#L397)

<a id="variant-other"></a>

### Other

```rust
Other
```

Anything else.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/design.rs#L399)

## 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`

## Availability

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