RoutedViewHost class¶
Attributes: [DebuggerDisplay("{Router}, {SetTitleOnNavigate}")]
Defined in
Namespace: ReactiveUI.Maui
Assembly: ReactiveUI.Maui.dll
Full name: ReactiveUI.Maui.RoutedViewHost
Modifiers: public
Summary¶
This is a NavigationPage that serves as a router.
Applies to
net10.0, net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-android36.0, net10.0-tvos26.0, net10.0-macos26.0, net10.0-windows10.0.19041
Class hierarchy
classDiagram
class RoutedViewHost
class NavigationPage
NavigationPage <|-- RoutedViewHost
class IActivatableView {
<>
}
IActivatableView <|.. RoutedViewHost
class IEnableLogger {
<>
}
IEnableLogger <|.. RoutedViewHost
Inherits from: NavigationPage
Implements: IActivatableView, IEnableLogger
Remarks¶
The host asks the view locator for each page by the view model's run-time type, without building any type at run
time, so it is safe to trim and to compile ahead of time. The default locator checks the view lookup the source
generator writes, then the views the app added with Map. A page registered only with the service locator
needs RoutedViewHostUnsafe.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [RoutedViewHost](# class. |
Properties¶
| Name | Summary |
|---|---|
| Router | Gets or sets the [RoutingState](# of the view model stack. |
| SetTitleOnNavigate | Gets or sets a value indicating whether gets or sets the Set Title of the view model stack. |
Fields¶
| Name | Summary |
|---|---|
| static RouterProperty | The router bindable property. |
| static SetTitleOnNavigateProperty | The Set Title on Navigate property. |
Methods¶
| Name | Summary |
|---|---|
| PagesForViewModel | Pages for view model. |
| PageForViewModel | Page for view model. |
| InvalidateCurrentViewModel | Invalidates current page view model. |
| SyncNavigationStacksAsync | Syncs page's navigation stack with [Router](# to affect [Router](# manipulations like Add or Clear. |
Derived types¶
Inherited members
See also¶
- Microsoft.Maui.Controls.NavigationPage
ReactiveUI.Binding.IActivatableView