# ContentControlProps

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

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

```rust
trait ContentControlProps: ElementBuilder
```

The properties and routed events of `ContentControl`.

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

## Members

- [`content`](#function-content)
- [`content_template`](#function-content_template)
- [`horizontal_content_alignment`](#function-horizontal_content_alignment)
- [`vertical_content_alignment`](#function-vertical_content_alignment)

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

### content

```rust
fn content<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
```

Sets `ContentControl::content_property`.

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

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

### content_template

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

Sets `ContentControl::content_template_property`.

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

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

### horizontal_content_alignment

```rust
fn horizontal_content_alignment<M>(self: Self, value: impl IntoProp<ferroui_base::layout::HorizontalAlignment, M>) -> Self
```

Sets `ContentControl::horizontal_content_alignment_property`.

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

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

### vertical_content_alignment

```rust
fn vertical_content_alignment<M>(self: Self, value: impl IntoProp<ferroui_base::layout::VerticalAlignment, M>) -> Self
```

Sets `ContentControl::vertical_content_alignment_property`.

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

## Trait implementations

- [`ContentControlProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-contentcontrolprops/)

## Availability

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