FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

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

    Returns a strong reference to this object.

    Source

    binding_property

    fn binding_property() -> &'static StyledProperty<Option<Rc<dyn BindingBase>>>
    

    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

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

    Source

    set_binding

    fn set_binding(self: &Self, value: Option<Rc<dyn BindingBase>>)
    

    Source

    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.

    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 DataTriggerBehavior names its own).

    Source

    Trait implementations

    Availability

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