FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    NavigateToAction

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

    struct NavigateToAction
    

    An action that resolves and navigates to a view model of a type (the TViewModel of the reference, a RoutableViewModelType).

    Deviation (DEVIATIONS.md, Behaviors): the class is not generic; the view model type is given when the action is created (new), and markup does not create the action (it has no type arguments for it).

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

    Returns a strong reference to this object.

    Source

    resolve_view_model

    fn resolve_view_model(self: &Self) -> Option<RoutableViewModel>
    

    Resolves an instance of the view model type from the service locator.

    Returns the resolved view model instance or None if it cannot be created.

    Source

    router_property

    fn router_property() -> &'static StyledProperty<Option<Rc<RoutingState>>>
    

    Identifies the Router property.

    Source

    construct

    fn construct(view_model_type: RoutableViewModelType) -> Self
    

    Creates the class data for an action that navigates to view models of view_model_type (the TViewModel of the reference); see ferroui_base::FerroObject::construct.

    Source

    new

    fn new<VM: IRoutableViewModel + 'static>() -> Ref<Self>
    

    Creates an action that navigates to view models of type VM.

    Source

    view_model_type

    fn view_model_type(self: &Self) -> RoutableViewModelType
    

    The view model type the action navigates to (the TViewModel of the reference).

    Source

    router

    fn router(self: &Self) -> Option<Rc<RoutingState>>
    

    Gets or sets the router used for navigation. This is a property of the object model.

    Source

    set_router

    fn set_router(self: &Self, value: Option<Rc<RoutingState>>)
    

    Source

    Trait implementations

    Availability

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