RoutedViewHost class¶
Attributes: [DebuggerDisplay("{Router}, {SetTitleOnNavigate}")]
Defined in
Namespace: ReactiveUI.Maui Assembly: ReactiveUI.Maui.dll Full name: ReactiveUI.Maui.RoutedViewHost Modifiers: public
Summary¶
View source (opens in a new tab)
This is a NavigationPage (opens in a new tab) that serves as a router.
Applies to
net11.0-ios27.2, net11.0-maccatalyst27.2, net11.0-macos27.2, net11.0-android37.0, net11.0-tvos27.2, net11.0-windows10.0.19041, net10.0, net10.0-ios26.0, net10.0-maccatalyst26.0, net10.0-tvos26.0, net10.0-android36.0, net10.0-macos26.0, net10.0-windows10.0.19041
Class hierarchy
classDiagram
class RoutedViewHost
class NavigationPage
NavigationPage <|-- RoutedViewHost
class IActivatableView {
<<interface>>
}
IActivatableView <|.. RoutedViewHost
class IEnableLogger {
<<interface>>
}
IEnableLogger <|.. RoutedViewHost
Inherits from: NavigationPage (opens in a new tab)
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 from ReactiveUI.Maui.Unsafe.
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
System.Object.Equals(System.Object)(opens in a new tab)System.Object.Equals(System.Object,System.Object)(opens in a new tab)System.Object.GetHashCode(opens in a new tab)System.Object.GetType(opens in a new tab)System.Object.MemberwiseClone(opens in a new tab)System.Object.ReferenceEquals(System.Object,System.Object)(opens in a new tab)System.Object.ToString(opens in a new tab)
See also¶
- Microsoft.Maui.Controls.NavigationPage (opens in a new tab)
ReactiveUI.Binding.IActivatableView