FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RoutableViewModelMixins

    trait · ferroui-reactiveui · v0.5.0

    trait RoutableViewModelMixins
    

    The navigation focus of a routable view model: what to do while it is the current view model of its screen's router (RoutableViewModelMixins), on its shared handle.

    The router is the one of host_screen; a view model without a screen panics (upstream's NullReferenceException).

    View source

    Members

    when_navigated_to

    fn when_navigated_to(self: &Self, on_navigated_to: impl Fn() -> Rc<dyn IDisposable> + 'static) -> Rc<dyn IDisposable>
    

    Runs on_navigated_to each time the view model becomes the topmost of the stack, and disposes what it returned when the view model loses the top (WhenNavigatedTo).

    The returned disposable stops watching and disposes the scope in force.

    Source

    when_navigated_to_observable

    fn when_navigated_to_observable(self: &Self) -> Rc<dyn IObservable<()>>
    

    Ticks each time the view model becomes the topmost of the stack, at once when it already is; completes when the view model is removed from the stack (WhenNavigatedToObservable). A view model removed and reused later is watched again with a new call.

    Source

    when_navigating_from_observable

    fn when_navigating_from_observable(self: &Self) -> Rc<dyn IObservable<()>>
    

    Ticks each time the view model stops being the topmost of the stack; completes when the view model is removed from the stack (WhenNavigatingFromObservable).

    Source

    Trait implementations

    Availability

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