MultiDataTriggerBehavior
struct · ferroui-xaml-interactions · v0.5.0
struct MultiDataTriggerBehavior
A behavior that performs actions when all bound data conditions are satisfied.
A Condition compares the value of a binding, or of a property of the associated object or
of a named element, with its value. The conditions are evaluated in a job of the dispatcher
after one of them changed. With revert_on_false the reversible
actions are reverted when the conditions stop being met.
Members
TYPEto_refrevert_on_false_propertyconditions_propertyconstructnewconditionsset_conditionsrevert_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<MultiDataTriggerBehavior>
Returns a strong reference to this object.
revert_on_false_property
fn revert_on_false_property() -> &'static StyledProperty<bool>
Identifies the RevertOnFalse property.
conditions_property
fn conditions_property() -> &'static StyledProperty<Option<ConditionCollection>>
Identifies the Conditions property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a trigger.
conditions
fn conditions(self: &Self) -> Option<ConditionCollection>
Gets or sets the collection of conditions that must all be satisfied before actions are executed. This is a property of the object model.
set_conditions
fn set_conditions(self: &Self, value: Option<ConditionCollection>)
revert_on_false
fn revert_on_false(self: &Self) -> bool
Gets or sets a value indicating whether reversible actions should be reverted when the conditions become false. When false, the trigger matches the legacy semantics and only executes actions when all conditions are 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<MultiDataTriggerBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplFerroObjectImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.