FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    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<DataTriggerBehavior>
    

    Returns a strong reference to this object.

    Source

    binding_property

    fn binding_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Identifies the Binding property.

    Source

    comparison_condition_property

    fn comparison_condition_property() -> &'static StyledProperty<ComparisonConditionType>
    

    Identifies the ComparisonCondition property.

    Source

    value_property

    fn value_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Identifies the Value property.

    Source

    revert_on_false_property

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

    Identifies the RevertOnFalse 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

    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.

    Source

    set_binding

    fn set_binding(self: &Self, value: Option<BoxedValue>)
    

    Source

    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.

    Source

    set_comparison_condition

    fn set_comparison_condition(self: &Self, value: ComparisonConditionType)
    

    Source

    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.

    Source

    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).

    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 condition becomes false. When false, the trigger matches the legacy semantics and only executes actions when the condition is 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.