FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AsyncLoadBehavior

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

    struct AsyncLoadBehavior
    

    Behavior that calls an asynchronous method when the associated control is loaded.

    The method is found by name on target_object, or on the data context of the control, among the methods its markup metadata declares (the reflection of the reference), and is called in a job of the dispatcher once the control is attached to the visual tree.

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

    Returns a strong reference to this object.

    Source

    method_name_property

    fn method_name_property() -> &'static StyledProperty<Option<String>>
    

    Identifies the MethodName property.

    Source

    target_object_property

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

    Identifies the TargetObject property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    method_name

    fn method_name(self: &Self) -> Option<String>
    

    Gets or sets the name of the method to invoke on load.

    Source

    set_method_name

    fn set_method_name(self: &Self, value: Option<String>)
    

    Source

    target_object

    fn target_object(self: &Self) -> Option<BoxedValue>
    

    Gets or sets the object that exposes the method of interest. If null the data context is used. Markup resolves a name given for it to the named element.

    Source

    set_target_object

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

    Source

    Trait implementations

    Availability

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