# BindingExpressionBase

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/data/trait-bindingexpressionbase/

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

```rust
trait BindingExpressionBase: IDisposable + IValueEntry + Any
```

The base of binding expressions: an instantiated binding on a target
object. It is also the value entry through which the target's value store
reads the binding's value.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/binding_expression_base.rs#L13)

## Members

- [`priority`](#function-priority)
- [`target_property`](#function-target_property)
- [`default_priority`](#function-default_priority)
- [`is_data_validation_enabled`](#function-is_data_validation_enabled)
- [`update_source`](#function-update_source)
- [`update_target`](#function-update_target)
- [`as_any`](#function-as_any)

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

### priority

```rust
fn priority(self: &Self) -> BindingPriority
```

The priority of the binding expression.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/binding_expression_base.rs#L15)

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

### target_property

```rust
fn target_property(self: &Self) -> Option<&'static FerroProperty>
```

The property that the binding expression is targeting.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/binding_expression_base.rs#L18)

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

### default_priority

```rust
fn default_priority(self: &Self) -> BindingPriority
```

The preferred priority of the binding expression; the priority passed
to `attach` may differ if the binding targets a direct
property, in which case it is elevated to local value priority.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/binding_expression_base.rs#L23)

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

### is_data_validation_enabled

```rust
fn is_data_validation_enabled(self: &Self) -> bool
```

Whether data validation is enabled for the binding expression.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/binding_expression_base.rs#L26)

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

### update_source

```rust
fn update_source(self: &Self)
```

Sends the current binding target value to the binding source property
in two-way or one-way-to-source bindings. Does nothing for other
modes. If the update source trigger of the binding is explicit, this
must be called for changes to propagate back to the source.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/binding_expression_base.rs#L32)

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

### update_target

```rust
fn update_target(self: &Self)
```

Forces a data transfer from the binding source to the binding target.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/binding_expression_base.rs#L35)

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

### as_any

```rust
fn as_any(self: &Self) -> &dyn Any
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/binding_expression_base.rs#L79)

## Trait implementations

- [`BindingExpressionBase`](/docs/0.5.0/api/ferroui-base/data/trait-bindingexpressionbase/)

## Availability

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