DataTriggerBehavior
struct · ferroui-xaml-interactions · v0.5.0
struct DataTriggerBehavior
A behavior that performs actions when the bound data meets a specified condition.
The comparison of binding with value runs in a job of the
dispatcher after one of them changed. With revert_on_false the
reversible actions are reverted when the condition stops being met.
Members
TYPEto_refbinding_propertycomparison_condition_propertyvalue_propertyrevert_on_false_propertyconstructnewbindingset_bindingcomparison_conditionset_comparison_conditionvalueset_trigger_valuerevert_on_falseset_revert_on_false
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<DataTriggerBehavior>
Returns a strong reference to this object.
binding_property
fn binding_property() -> &'static StyledProperty<Option<BoxedValue>>
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.
revert_on_false_property
fn revert_on_false_property() -> &'static StyledProperty<bool>
Identifies the RevertOnFalse 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<BoxedValue>
Gets or sets the bound object that the trigger will listen to. This is a property of the object model.
set_binding
fn set_binding(self: &Self, value: Option<BoxedValue>)
comparison_condition
fn comparison_condition(self: &Self) -> ComparisonConditionType
Gets or sets the type of comparison to be performed between 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 the condition of the object model names its own).
revert_on_false
fn revert_on_false(self: &Self) -> bool
Gets or sets a value indicating whether reversible actions should be reverted when the condition becomes false. When false, the trigger matches the legacy semantics and only executes actions when the condition is true.
set_revert_on_false
fn set_revert_on_false(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<DataTriggerBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplFerroObjectImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.