FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ValueChangedTriggerBehavior

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct ValueChangedTriggerBehavior
    

    A behavior that performs actions when the bound data produces new value.

    The actions run in a job of the dispatcher after each change of binding to a value that is not null, with the change as their parameter.

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

    Returns a strong reference to this object.

    Source

    binding_property

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

    Identifies the Binding 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 ValueChangedTriggerBehavior will listen to. This is a property of the object model.

    Source

    set_binding

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

    Source

    Trait implementations

    Availability

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