FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    register_activatable_view_model

    function · ferroui-reactiveui · v0.5.0

    fn register_activatable_view_model<VM: IActivatableViewModel>()
    

    Makes the view models of the type VM known as activatable, so that a view whose view model is one activates it (the test value is IActivatableViewModel of upstream).

    ViewModelActivationMixins calls it when a view model registers what to do on activation, which is what every activatable view model does; a view model that only uses its activator's observables calls it once.

    View source

    Availability

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