Skip to content

RoutedViewHost class

Attributes: [RequiresUnreferencedCode("The method uses reflection and may not work in AOT environments.")]

Defined in

Namespace: ReactiveUI.Uno Assembly: ReactiveUI.Uno.dll Full name: ReactiveUI.Uno.RoutedViewHost 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.
        

Applies to

net10.0, net10.0-tvos26.0, net10.0-maccatalyst26.0, net10.0-desktop1.0, net10.0-browserwasm1.0, net10.0-android36.0, net10.0-ios26.0, net10.0-windows10.0.19041, net9.0, net9.0-android35.0, net9.0-maccatalyst18.0, net9.0-windows10.0.19041, net9.0-desktop1.0, net9.0-tvos18.0, net9.0-ios18.0, net9.0-browserwasm1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-tvos18.0, net8.0-macos15.0, net8.0-tvos17.2, net8.0-ios18.0, net8.0-macos14.5, net8.0-windows10.0.19041, net8.0-android34.0, net8.0-maccatalyst18.0, netstandard2.1, net471

Class hierarchy
classDiagram
class RoutedViewHost
class TransitioningContentControl
TransitioningContentControl <|-- RoutedViewHost
class IActivatableView {
    <>
}
IActivatableView <|.. RoutedViewHost
class IEnableLogger {
    <>
}
IEnableLogger <|.. RoutedViewHost

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 RouterPropertyIdentifies the Router dependency property, which holds the current routing state for the view host.
static DefaultContentPropertyIdentifies the DefaultContent dependency property.
static ViewContractObservablePropertyIdentifies the ViewContractObservable dependency property.
Inherited members