# FocusAdornerTemplate

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-markup-xaml/templates/struct-focusadornertemplate/

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

```rust
struct FocusAdornerTemplate
```

The template of a focus adorner.

The managed class derives from [`Template`](/docs/0.5.0/api/ferroui-markup-xaml/templates/struct-template/) and adds nothing; here it
holds one and dereferences to it.

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

## Members

- [`new`](#function-new)
- [`base`](#function-base)
- [`as_template`](#function-as_template)

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

### new

```rust
fn new() -> Rc<Self>
```



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

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

### base

```rust
fn base(self: &Self) -> &Rc<Template>
```

The template this one is (the base class part).

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

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

### as_template

```rust
fn as_template(self: &Self) -> Rc<dyn ITemplateOf<Option<Ref<Control>>>>
```

The template as the typed template contract.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`ITemplateOf<Option<Ref<Control>>>`](/docs/0.5.0/api/ferroui-controls/templates/trait-itemplateof/)
- [`ITemplateOf<Ref<Control>>`](/docs/0.5.0/api/ferroui-controls/templates/trait-itemplateof/)
- [`ITemplate`](/docs/0.5.0/api/ferroui-base/styling/trait-itemplate/)
- `PartialEq`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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