# TemplatedControlProps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/generated/builders/trait-templatedcontrolprops/

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

```rust
trait TemplatedControlProps: ElementBuilder
```

The properties and routed events of `TemplatedControl`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8251)

## Members

- [`background`](#function-background)
- [`background_sizing`](#function-background_sizing)
- [`border_brush`](#function-border_brush)
- [`border_thickness`](#function-border_thickness)
- [`corner_radius`](#function-corner_radius)
- [`font_family`](#function-font_family)
- [`font_features`](#function-font_features)
- [`font_size`](#function-font_size)
- [`font_style`](#function-font_style)
- [`font_weight`](#function-font_weight)
- [`font_stretch`](#function-font_stretch)
- [`foreground`](#function-foreground)
- [`letter_spacing`](#function-letter_spacing)
- [`padding`](#function-padding)
- [`template`](#function-template)
- [`is_template_focus_target`](#function-is_template_focus_target)
- [`on_template_applied`](#function-on_template_applied)

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

### background

```rust
fn background<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
```

Sets `TemplatedControl::background_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8253)

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

### background_sizing

```rust
fn background_sizing<M>(self: Self, value: impl IntoProp<ferroui_base::media::BackgroundSizing, M>) -> Self
```

Sets `TemplatedControl::background_sizing_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8258)

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

### border_brush

```rust
fn border_brush<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
```

Sets `TemplatedControl::border_brush_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8263)

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

### border_thickness

```rust
fn border_thickness<M>(self: Self, value: impl IntoProp<ferroui_base::Thickness, M>) -> Self
```

Sets `TemplatedControl::border_thickness_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8268)

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

### corner_radius

```rust
fn corner_radius<M>(self: Self, value: impl IntoProp<ferroui_base::CornerRadius, M>) -> Self
```

Sets `TemplatedControl::corner_radius_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8273)

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

### font_family

```rust
fn font_family<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontFamily, M>) -> Self
```

Sets `TemplatedControl::font_family_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8278)

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

### font_features

```rust
fn font_features<M>(self: Self, value: impl IntoProp<Option<ferroui_base::media::FontFeatureCollection>, M>) -> Self
```

Sets `TemplatedControl::font_features_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8283)

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

### font_size

```rust
fn font_size<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `TemplatedControl::font_size_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8288)

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

### font_style

```rust
fn font_style<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStyle, M>) -> Self
```

Sets `TemplatedControl::font_style_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8293)

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

### font_weight

```rust
fn font_weight<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontWeight, M>) -> Self
```

Sets `TemplatedControl::font_weight_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8298)

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

### font_stretch

```rust
fn font_stretch<M>(self: Self, value: impl IntoProp<ferroui_base::media::FontStretch, M>) -> Self
```

Sets `TemplatedControl::font_stretch_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8303)

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

### foreground

```rust
fn foreground<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IBrush>>, M>) -> Self
```

Sets `TemplatedControl::foreground_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8308)

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

### letter_spacing

```rust
fn letter_spacing<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `TemplatedControl::letter_spacing_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8313)

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

### padding

```rust
fn padding<M>(self: Self, value: impl IntoProp<ferroui_base::Thickness, M>) -> Self
```

Sets `TemplatedControl::padding_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8318)

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

### template

```rust
fn template<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_controls::templates::IControlTemplate>>, M>) -> Self
```

Sets `TemplatedControl::template_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8323)

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

### is_template_focus_target

```rust
fn is_template_focus_target<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
```

Sets `TemplatedControl::is_template_focus_target_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8328)

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

### on_template_applied

```rust
fn on_template_applied(self: Self, handler: impl Fn(&ferroui_controls::primitives::TemplateAppliedEventArgs) -> () + 'static) -> Self
```

Handles `TemplatedControl::template_applied_event`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L8333)

## Trait implementations

- [`TemplatedControlProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-templatedcontrolprops/)

## Availability

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