Class RoutingStateMixins
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
Extension methods associated with the RoutingState class.
public static class RoutingStateMixins
- Inheritance
-
RoutingStateMixins
Methods
FindViewModelInStack<T>(RoutingState)
Locate the first ViewModel in the stack that matches a certain Type.
public static T? FindViewModelInStack<T>(this RoutingState item) where T : IRoutableViewModel
Parameters
item
RoutingStateThe routing state.
Returns
- T
The matching ViewModel or null if none exists.
Type Parameters
T
The view model type.
GetCurrentViewModel(RoutingState)
Returns the currently visible ViewModel.
public static IRoutableViewModel? GetCurrentViewModel(this RoutingState item)
Parameters
item
RoutingStateThe routing state.
Returns
- IRoutableViewModel
The matching ViewModel or null if none exists.