BindingExpressionBase
trait · ferroui-base · v0.5.0
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.
Members
prioritytarget_propertydefault_priorityis_data_validation_enabledupdate_sourceupdate_targetas_any
priority
fn priority(self: &Self) -> BindingPriority
The priority of the binding expression.
target_property
fn target_property(self: &Self) -> Option<&'static FerroProperty>
The property that the binding expression is targeting.
default_priority
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.
is_data_validation_enabled
fn is_data_validation_enabled(self: &Self) -> bool
Whether data validation is enabled for the binding expression.
update_source
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.
update_target
fn update_target(self: &Self)
Forces a data transfer from the binding source to the binding target.
as_any
fn as_any(self: &Self) -> &dyn Any
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.