FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<MultiDataTriggerBehavior>
    

    Returns a strong reference to this object.

    Source

    revert_on_false_property

    fn revert_on_false_property() -> &'static StyledProperty<bool>
    

    Identifies the RevertOnFalse property.

    Source

    conditions_property

    fn conditions_property() -> &'static StyledProperty<Option<ConditionCollection>>
    

    Identifies the Conditions property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a trigger.

    Source

    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.

    Source

    set_conditions

    fn set_conditions(self: &Self, value: Option<ConditionCollection>)
    

    Source

    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.

    Source

    set_revert_on_false

    fn set_revert_on_false(self: &Self, value: bool)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.