Class RoutedViewHost
- Namespace
- ReactiveUI.Maui
- Assembly
- ReactiveUI.Maui.dll
This is a Microsoft.Maui.Controls.NavigationPage that serves as a router.
public class RoutedViewHost : NavigationPage, IActivatableView, IEnableLogger
- Inheritance
-
RoutedViewHost
- Implements
- Extension Methods
Constructors
RoutedViewHost()
Initializes a new instance of the RoutedViewHost class.
public RoutedViewHost()
Exceptions
- Exception
You must register an IScreen class representing your App's main Screen.
Fields
RouterProperty
The router bindable property.
public static readonly BindableProperty RouterProperty
Field Value
- BindableProperty
SetTitleOnNavigateProperty
The Set Title on Navigate property.
public static readonly BindableProperty SetTitleOnNavigateProperty
Field Value
- BindableProperty
Properties
Router
Gets or sets the RoutingState of the view model stack.
public RoutingState Router { get; set; }
Property Value
SetTitleOnNavigate
Gets or sets a value indicating whether gets or sets the Set Title of the view model stack.
public bool SetTitleOnNavigate { get; set; }
Property Value
Methods
InvalidateCurrentViewModel()
Invalidates current page view model.
protected void InvalidateCurrentViewModel()
PageForViewModel(IRoutableViewModel)
Page for view model.
protected virtual Page PageForViewModel(IRoutableViewModel vm)
Parameters
vm
IRoutableViewModelThe vm.
Returns
- Page
An observable of the page associated to a IRoutableViewModel.
PagesForViewModel(IRoutableViewModel?)
Pages for view model.
protected virtual IObservable<Page> PagesForViewModel(IRoutableViewModel? vm)
Parameters
vm
IRoutableViewModelThe vm.
Returns
- IObservable<Page>
An observable of the page associated to a IRoutableViewModel.
SyncNavigationStacksAsync()
protected Task SyncNavigationStacksAsync()
Returns
See Also
Microsoft.Maui.Controls.NavigationPage