Table of Contents

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
RoutedViewHost
Implements
IWinRTObject
IEnableLogger
Inherited Members
Extension Methods
WhenAnyMixin.WhenAny<TSender, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(TSender?, Expression<Func<TSender, T1>>, Expression<Func<TSender, T2>>, Expression<Func<TSender, T3>>, Expression<Func<TSender, T4>>, Expression<Func<TSender, T5>>, Expression<Func<TSender, T6>>, Expression<Func<TSender, T7>>, Expression<Func<TSender, T8>>, Expression<Func<TSender, T9>>, Expression<Func<TSender, T10>>, Expression<Func<TSender, T11>>, Expression<Func<TSender, T12>>, Func<IObservedChange<TSender, T1>, IObservedChange<TSender, T2>, IObservedChange<TSender, T3>, IObservedChange<TSender, T4>, IObservedChange<TSender, T5>, IObservedChange<TSender, T6>, IObservedChange<TSender, T7>, IObservedChange<TSender, T8>, IObservedChange<TSender, T9>, IObservedChange<TSender, T10>, IObservedChange<TSender, T11>, IObservedChange<TSender, T12>, TRet>)
WhenAnyMixin.WhenAny<TSender, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(TSender?, Expression<Func<TSender, T1>>, Expression<Func<TSender, T2>>, Expression<Func<TSender, T3>>, Expression<Func<TSender, T4>>, Expression<Func<TSender, T5>>, Expression<Func<TSender, T6>>, Expression<Func<TSender, T7>>, Expression<Func<TSender, T8>>, Expression<Func<TSender, T9>>, Expression<Func<TSender, T10>>, Expression<Func<TSender, T11>>, Expression<Func<TSender, T12>>, Func<IObservedChange<TSender, T1>, IObservedChange<TSender, T2>, IObservedChange<TSender, T3>, IObservedChange<TSender, T4>, IObservedChange<TSender, T5>, IObservedChange<TSender, T6>, IObservedChange<TSender, T7>, IObservedChange<TSender, T8>, IObservedChange<TSender, T9>, IObservedChange<TSender, T10>, IObservedChange<TSender, T11>, IObservedChange<TSender, T12>, TRet>, bool)

Constructors

RoutedViewHost()

Initializes a new instance of the RoutedViewHost class.

[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.

public static readonly DependencyProperty DefaultContentProperty

Field Value

DependencyProperty

RouterProperty

The router dependency property.

public static readonly DependencyProperty RouterProperty

Field Value

DependencyProperty

ViewContractObservableProperty

The view contract observable property.

public static readonly DependencyProperty ViewContractObservableProperty

Field Value

DependencyProperty

Properties

DefaultContent

Gets or sets the content displayed whenever there is no page currently routed.

public object DefaultContent { get; set; }

Property Value

object

Router

Gets or sets the RoutingState of the view model stack.

public RoutingState Router { get; set; }

Property Value

RoutingState

ViewContract

Gets or sets the view contract.

public string? ViewContract { get; set; }

Property Value

string

ViewContractObservable

Gets or sets the view contract observable.

public IObservable<string?> ViewContractObservable { get; set; }

Property Value

IObservable<string>

The view contract observable.

ViewLocator

Gets or sets the view locator.

public IViewLocator? ViewLocator { get; set; }

Property Value

IViewLocator

The view locator.