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¶
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¶
| 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 | Identifies the Router dependency property, which holds the current routing state for the view host. |
| static DefaultContentProperty | Identifies the DefaultContent dependency property. |
| static ViewContractObservableProperty | Identifies the ViewContractObservable dependency property. |