# ControlProps

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

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

```rust
trait ControlProps: ElementBuilder
```

The properties and routed events of `Control`.

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

## Members

- [`focus_adorner`](#function-focus_adorner)
- [`tag`](#function-tag)
- [`context_menu`](#function-context_menu)
- [`context_flyout`](#function-context_flyout)
- [`on_request_bring_into_view`](#function-on_request_bring_into_view)
- [`on_loaded`](#function-on_loaded)
- [`on_unloaded`](#function-on_unloaded)
- [`on_size_changed`](#function-on_size_changed)

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

### focus_adorner

```rust
fn focus_adorner<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_controls::ITemplateOf<Option<ferroui_base::Ref<ferroui_controls::Control>>>>>, M>) -> Self
```

Sets `Control::focus_adorner_property`.

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

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

### tag

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

Sets `Control::tag_property`.

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

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

### context_menu

```rust
fn context_menu<M>(self: Self, value: impl IntoProp<Option<ferroui_base::Ref<ferroui_controls::ContextMenu>>, M>) -> Self
```

Sets `Control::context_menu_property`.

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

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

### context_flyout

```rust
fn context_flyout<M>(self: Self, value: impl IntoProp<Option<ferroui_base::Ref<ferroui_controls::primitives::FlyoutBase>>, M>) -> Self
```

Sets `Control::context_flyout_property`.

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

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

### on_request_bring_into_view

```rust
fn on_request_bring_into_view(self: Self, handler: impl Fn(&ferroui_controls::RequestBringIntoViewEventArgs) -> () + 'static) -> Self
```

Handles `Control::request_bring_into_view_event`.

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

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

### on_loaded

```rust
fn on_loaded(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
```

Handles `Control::loaded_event`.

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

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

### on_unloaded

```rust
fn on_unloaded(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
```

Handles `Control::unloaded_event`.

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

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

### on_size_changed

```rust
fn on_size_changed(self: Self, handler: impl Fn(&ferroui_controls::SizeChangedEventArgs) -> () + 'static) -> Self
```

Handles `Control::size_changed_event`.

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

## Trait implementations

- [`ControlProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-controlprops/)

## Availability

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