# owned_element_property

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

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

```rust
fn owned_element_property<V: 'static, T: ObjectType, TV: 'static>(name: &str, element: &ferroui_base::Ref<T>, property: ferroui_system::component_model::PropertyPath<ferroui_base::Ref<T>, TV>, set: impl Fn(&ferroui_base::Ref<T>, TV) -> () + 'static) -> ferroui_reactiveui::SettableProperty<std::rc::Rc<V>, TV>
```

[`element_property`](/docs/0.5.0/api/ferroui-reactiveui-controls/function-element_property/) whose step to the element names the view as the owner of the element, so
that the binding hooks see the element and its property (the default item template of an items
control, `AutoDataTemplateBindingHook`).

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

## Availability

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