Class RoutedViewHost
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.WinUI.dll
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.
public class RoutedViewHost : TransitioningContentControl, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IEquatable<Control>, IWinRTObject, IDynamicInterfaceCastable, IEquatable<ContentControl>, IActivatableView, IEnableLogger
- Inheritance
-
Routed
View Host
- Implements
-
IWin
RTObject IEnableLogger
- Inherited Members
- Extension Methods
Constructors
RoutedViewHost()
Initializes a new instance of the Routed
[RequiresDynamicCode("RoutedViewHost uses methods that require dynamic code generation")]
[RequiresUnreferencedCode("RoutedViewHost uses methods that may require unreferenced code")]
public RoutedViewHost()
Fields
DefaultContentProperty
The default content property.
Field Value
RouterProperty
The router dependency property.
Field Value
ViewContractObservableProperty
The view contract observable property.
Field Value
Properties
DefaultContent
Gets or sets the content displayed whenever there is no page currently routed.
Property Value
Router
Gets or sets the Routing
Property Value
ViewContract
Gets or sets the view contract.
Property Value
ViewContractObservable
Gets or sets the view contract observable.
Property Value
- IObservable<string>
The view contract observable.
ViewLocator
Gets or sets the view locator.
Property Value
- IView
Locator The view locator.