# TemplatedControlImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/

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

```rust
trait TemplatedControlImpl: ControlImpl + $crate::Upcast<TemplatedControl>
```

The overridable members introduced by the class.

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

## Members

- [`on_apply_template`](#function-on_apply_template)
- [`on_template_changed`](#function-on_template_changed)

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

### on_apply_template

```rust
fn on_apply_template(this: &Self, e: &TemplateAppliedEventArgs)
```

Called when the control's template is applied.

In simple terms, this means the method is called just before the
control is displayed.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/templated_control.rs#L29)

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

### on_template_changed

```rust
fn on_template_changed(this: &Self, e: &FerroPropertyChangedEventArgs<'_>)
```

Called when the `Template` property changes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/primitives/templated_control.rs#L29)

## Trait implementations

- [`TemplatedControlImpl`](/docs/0.5.0/api/ferroui-controls/primitives/trait-templatedcontrolimpl/)

## Availability

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