BindingTriggerBehavior
struct · ferroui-xaml-interactions-custom · v0.5.0
struct BindingTriggerBehavior
A behavior that performs actions when the bound data meets a specified condition.
The binding itself is assigned to binding (markup assigns it as it is) and
bound by the behavior to a private property; the comparison of its value with
value runs when the behavior is initialized, then in a job of the dispatcher
after one of them changed.
Members
TYPEto_refbinding_propertycomparison_condition_propertyvalue_propertyconstructnewbindingset_bindingcomparison_conditionset_comparison_conditionvalueset_trigger_value
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<BindingTriggerBehavior>
Returns a strong reference to this object.
binding_property
fn binding_property() -> &'static StyledProperty<Option<Rc<dyn BindingBase>>>
Identifies the Binding property.
comparison_condition_property
fn comparison_condition_property() -> &'static StyledProperty<ComparisonConditionType>
Identifies the ComparisonCondition property.
value_property
fn value_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the Value property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a trigger.
binding
fn binding(self: &Self) -> Option<Rc<dyn BindingBase>>
Gets or sets the bound object that the BindingTriggerBehavior will listen to. This is
a property of the object model, to which markup assigns a binding as it is.
set_binding
fn set_binding(self: &Self, value: Option<Rc<dyn BindingBase>>)
comparison_condition
fn comparison_condition(self: &Self) -> ComparisonConditionType
Gets or sets the type of comparison to be performed between the value of
binding and value. This is a property of the object
model.
set_comparison_condition
fn set_comparison_condition(self: &Self, value: ComparisonConditionType)
value
fn value(self: &Self) -> Option<BoxedValue>
Gets or sets the value to be compared with the value of binding. This
is a property of the object model.
set_trigger_value
fn set_trigger_value(self: &Self, value: Option<BoxedValue>)
Sets the value to be compared (named apart from the setter of every property of the
object, as DataTriggerBehavior names its own).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<BindingTriggerBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplFerroObjectImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.