RoutedViewHost class¶
Attributes: [WinRTRuntimeClassName] [WinRTExposedType]
Defined in
Namespace: ReactiveUI
Assembly: ReactiveUI.WinUI.dll
Full name: ReactiveUI.RoutedViewHost<T>
Modifiers: public
Summary¶
This control hosts the View associated with a Router, and will display
the View and wire up the ViewModel whenever a new ViewModel is
navigated to. Put this control as the only control in your Window.
This generic version provides AOT-compatibility by using compile-time type information.
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041
Class hierarchy
classDiagram
class RoutedViewHost~T~
class TransitioningContentControl
TransitioningContentControl <|-- RoutedViewHost~T~
class IActivatableView {
<>
}
IActivatableView <|.. RoutedViewHost~T~
class IEnableLogger {
<>
}
IEnableLogger <|.. RoutedViewHost~T~
Inherits from: TransitioningContentControl
Implements: IActivatableView, IEnableLogger
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. |
| DefaultContent | Gets or sets the content displayed whenever there is no page currently routed. |
| ViewContractObservable | Gets or sets the view contract observable. |
| ViewContract | Gets or sets the view contract. |
| ViewLocator | Gets or sets the view locator. |
Fields¶
| Name | Summary |
|---|---|
| static RouterProperty | The router dependency property. |
| static DefaultContentProperty | The default content property. |
| static ViewContractObservableProperty | The view contract observable property. |