FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LoadedBehavior

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

    struct LoadedBehavior
    

    A base class for behaviors using loaded event.

    The class is abstract. The type argument T of the reference (a control) is the runtime type passed to construct (see BehaviorOfT).

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

    Returns a strong reference to this object.

    Source

    on_loaded_override

    fn on_loaded_override(self: &Self) -> Rc<dyn IDisposable>
    

    Called after the associated object is loaded.

    Returns a disposable resource to be disposed when the behavior is detached.

    Source

    construct

    fn construct(associated_type: &'static TypeInfo) -> Self
    

    Creates the class data for behaviors attached to objects of associated_type (the T of the reference); see ferroui_base::FerroObject::construct.

    Source

    Trait implementations

    Availability

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