# element_control

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui-controls/function-element_control/

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

```rust
fn element_control<V: 'static, T: ObjectType>(name: &str, element: &ferroui_base::Ref<T>) -> ferroui_system::component_model::PropertyPath<std::rc::Rc<V>, std::rc::Rc<ferroui_base::Ref<T>>>
```

The element `element` (named `name` in the document of the view) as the control a command binds
to (`v => v.Element`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/bindable_view.rs#L171)

## Availability

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