NavigateToAndResetAction
struct · ferroui-xaml-interactions-reactiveui · v0.5.0
struct NavigateToAndResetAction
An action that resolves and navigates to a view model of a type (the TViewModel of the
reference, a RoutableViewModelType) and clears the navigation stack.
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).
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<NavigateToAndResetAction>
Returns a strong reference to this object.
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.
router_property
fn router_property() -> &'static StyledProperty<Option<Rc<RoutingState>>>
Identifies the Router property.
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.
new
fn new<VM: IRoutableViewModel + 'static>() -> Ref<Self>
Creates an action that navigates to view models of type VM.
view_model_type
fn view_model_type(self: &Self) -> RoutableViewModelType
The view model type the action navigates to (the TViewModel of the reference).
router
fn router(self: &Self) -> Option<Rc<RoutingState>>
Gets or sets the router used for navigation. This is a property of the object model.
set_router
fn set_router(self: &Self, value: Option<Rc<RoutingState>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeNavigateToAndResetActionImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementActionImplExtDerefUpcast<T>Upcast<NavigateToAndResetAction>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplNavigateToAndResetActionImplStyledElementActionImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.