Table of Contents

Class RoutingStateMixins

Namespace
ReactiveUI
Assembly
ReactiveUI.dll

Extension methods associated with the RoutingState class.

public static class RoutingStateMixins : Object
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 RoutingState

The 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 RoutingState

The routing state.

Returns

IRoutableViewModel

The matching ViewModel or null if none exists.