Skip to content

RoutedViewHost class

Attributes: [WinRTRuntimeClassName] [WinRTExposedType]

Defined in

Namespace: ReactiveUI Assembly: ReactiveUI.WinUI.dll Full name: ReactiveUI.RoutedViewHost<T> Modifiers: public

Summary

View source

        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

NameSummary
.ctorInitializes a new instance of the [RoutedViewHost](# class.

Properties

NameSummary
RouterGets or sets the [RoutingState](# of the view model stack.
DefaultContentGets or sets the content displayed whenever there is no page currently routed.
ViewContractObservableGets or sets the view contract observable.
ViewContractGets or sets the view contract.
ViewLocatorGets or sets the view locator.

Fields

NameSummary
static RouterPropertyThe router dependency property.
static DefaultContentPropertyThe default content property.
static ViewContractObservablePropertyThe view contract observable property.
Inherited members