# use_parent_property

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/hooks/function-use_parent_property/

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

```rust
fn use_parent_property<T: ferroui_base::PropertyValue>(property: &'static ferroui_base::StyledProperty<T>) -> Option<T>
```

The value of `property` on the control the component is mounted in, as
it is now; the component runs again when it changes. For an inherited
property (`DataContext`, `ActualThemeVariant`, `FlowDirection`) it is the
value the control inherits. `None` at the root of a tree.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/hooks.rs#L246)

## Availability

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