The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

RoutedViewHost Class

Summary

RoutedViewHost is a ReactiveNavigationController that monitors its RoutingState and keeps the navigation stack in line with it. 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.
Namespace
ReactiveUI
Interfaces
Base Types
  • ReactiveNavigationController
graph BT Type-->Base0["ReactiveNavigationController"] Type-.->Interface0["IActivatableView"] click Interface0 "/api/ReactiveUI/IActivatableView" Type-.->Interface1["IEnableLogger"] click Interface1 "/api/Splat/IEnableLogger" Type["RoutedViewHost"] class Type type-node

Syntax

[SuppressMessage("Design", "CA1010: Implement generic IEnumerable", Justification = "UI Kit exposes IEnumerable")]
public class RoutedViewHost : ReactiveNavigationController, IActivatableView, IEnableLogger

Attributes

Type Description
SuppressMessageAttribute

Constructors

Name Summary
RoutedViewHost() Initializes a new instance of the RoutedViewHost class.
RoutedViewHost() Initializes a new instance of the RoutedViewHost class.

Fields

Name Constant Value Summary
DefaultContentProperty
The default content property.
static
RouterProperty
The router dependency property.
static
ViewContractObservableProperty
The view contract observable property.
static

Properties

Name Value Summary
DefaultContent object
Gets or sets the content displayed whenever there is no page currently routed.
Router RoutingState
Gets or sets the RoutingState of the view model stack.
ViewContract string?
Gets or sets the view contract.
ViewContractObservable IObservable<string?>
Gets or sets the view contract observable.
ViewLocator IViewLocator?
Gets or sets the view locator.

Extension Methods

Name Value Summary
BindCommand<RoutedViewHost, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<RoutedViewHost, TControl>>, Expression<Func<TViewModel, TParam?>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<RoutedViewHost, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<RoutedViewHost, TControl>>, IObservable<TParam?>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<RoutedViewHost, TViewModel, TProp, TControl>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<RoutedViewHost, TControl>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindValidation<RoutedViewHost, TViewModel, TViewModelProperty, TViewProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty>>, Expression<Func<RoutedViewHost, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the specified ViewModel property validation to the View property.
BindValidation<RoutedViewHost, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<RoutedViewHost, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<RoutedViewHost, TViewModel, TViewProperty>(TViewModel?, Expression<Func<RoutedViewHost, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the overall validation of a ViewModel to a specified View property.
BindValidation<RoutedViewHost, TViewModel, TViewProperty>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, Expression<Func<RoutedViewHost, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds a ValidationHelper from a ViewModel to a specified View property.
BindValidation<RoutedViewHost, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<RoutedViewHost, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<RoutedViewHost, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<RoutedViewHost, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
InvokeViewModelAction<T>(Action<T>) object
This is a thing I lifted from Prism.
Log<RoutedViewHost>() IFullLogger
Call this method to write log entries on behalf of the current class.
From LogHost
WhenAnyObservable<RoutedViewHost, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Expression<Func<RoutedViewHost, IObservable<T1>?>>, Expression<Func<RoutedViewHost, IObservable<T2>?>>, Expression<Func<RoutedViewHost, IObservable<T3>?>>, Expression<Func<RoutedViewHost, IObservable<T4>?>>, Expression<Func<RoutedViewHost, IObservable<T5>?>>, Expression<Func<RoutedViewHost, IObservable<T6>?>>, Expression<Func<RoutedViewHost, IObservable<T7>?>>, Expression<Func<RoutedViewHost, IObservable<T8>?>>, Expression<Func<RoutedViewHost, IObservable<T9>?>>, Expression<Func<RoutedViewHost, IObservable<T10>?>>, Expression<Func<RoutedViewHost, IObservable<T11>?>>, Expression<Func<RoutedViewHost, IObservable<T12>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, T11?, T12?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Expression<Func<RoutedViewHost, IObservable<T1>?>>, Expression<Func<RoutedViewHost, IObservable<T2>?>>, Expression<Func<RoutedViewHost, IObservable<T3>?>>, Expression<Func<RoutedViewHost, IObservable<T4>?>>, Expression<Func<RoutedViewHost, IObservable<T5>?>>, Expression<Func<RoutedViewHost, IObservable<T6>?>>, Expression<Func<RoutedViewHost, IObservable<T7>?>>, Expression<Func<RoutedViewHost, IObservable<T8>?>>, Expression<Func<RoutedViewHost, IObservable<T9>?>>, Expression<Func<RoutedViewHost, IObservable<T10>?>>, Expression<Func<RoutedViewHost, IObservable<T11>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, T11?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Expression<Func<RoutedViewHost, IObservable<T1>?>>, Expression<Func<RoutedViewHost, IObservable<T2>?>>, Expression<Func<RoutedViewHost, IObservable<T3>?>>, Expression<Func<RoutedViewHost, IObservable<T4>?>>, Expression<Func<RoutedViewHost, IObservable<T5>?>>, Expression<Func<RoutedViewHost, IObservable<T6>?>>, Expression<Func<RoutedViewHost, IObservable<T7>?>>, Expression<Func<RoutedViewHost, IObservable<T8>?>>, Expression<Func<RoutedViewHost, IObservable<T9>?>>, Expression<Func<RoutedViewHost, IObservable<T10>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Expression<Func<RoutedViewHost, IObservable<T1>?>>, Expression<Func<RoutedViewHost, IObservable<T2>?>>, Expression<Func<RoutedViewHost, IObservable<T3>?>>, Expression<Func<RoutedViewHost, IObservable<T4>?>>, Expression<Func<RoutedViewHost, IObservable<T5>?>>, Expression<Func<RoutedViewHost, IObservable<T6>?>>, Expression<Func<RoutedViewHost, IObservable<T7>?>>, Expression<Func<RoutedViewHost, IObservable<T8>?>>, Expression<Func<RoutedViewHost, IObservable<T9>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet, T1, T2, T3, T4, T5, T6, T7, T8>(Expression<Func<RoutedViewHost, IObservable<T1>?>>, Expression<Func<RoutedViewHost, IObservable<T2>?>>, Expression<Func<RoutedViewHost, IObservable<T3>?>>, Expression<Func<RoutedViewHost, IObservable<T4>?>>, Expression<Func<RoutedViewHost, IObservable<T5>?>>, Expression<Func<RoutedViewHost, IObservable<T6>?>>, Expression<Func<RoutedViewHost, IObservable<T7>?>>, Expression<Func<RoutedViewHost, IObservable<T8>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet, T1, T2, T3, T4, T5, T6, T7>(Expression<Func<RoutedViewHost, IObservable<T1>?>>, Expression<Func<RoutedViewHost, IObservable<T2>?>>, Expression<Func<RoutedViewHost, IObservable<T3>?>>, Expression<Func<RoutedViewHost, IObservable<T4>?>>, Expression<Func<RoutedViewHost, IObservable<T5>?>>, Expression<Func<RoutedViewHost, IObservable<T6>?>>, Expression<Func<RoutedViewHost, IObservable<T7>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet, T1, T2, T3, T4, T5, T6>(Expression<Func<RoutedViewHost, IObservable<T1>?>>, Expression<Func<RoutedViewHost, IObservable<T2>?>>, Expression<Func<RoutedViewHost, IObservable<T3>?>>, Expression<Func<RoutedViewHost, IObservable<T4>?>>, Expression<Func<RoutedViewHost, IObservable<T5>?>>, Expression<Func<RoutedViewHost, IObservable<T6>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet, T1, T2, T3, T4, T5>(Expression<Func<RoutedViewHost, IObservable<T1>?>>, Expression<Func<RoutedViewHost, IObservable<T2>?>>, Expression<Func<RoutedViewHost, IObservable<T3>?>>, Expression<Func<RoutedViewHost, IObservable<T4>?>>, Expression<Func<RoutedViewHost, IObservable<T5>?>>, Func<T1?, T2?, T3?, T4?, T5?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet, T1, T2, T3, T4>(Expression<Func<RoutedViewHost, IObservable<T1>?>>, Expression<Func<RoutedViewHost, IObservable<T2>?>>, Expression<Func<RoutedViewHost, IObservable<T3>?>>, Expression<Func<RoutedViewHost, IObservable<T4>?>>, Func<T1?, T2?, T3?, T4?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet, T1, T2, T3>(Expression<Func<RoutedViewHost, IObservable<T1>?>>, Expression<Func<RoutedViewHost, IObservable<T2>?>>, Expression<Func<RoutedViewHost, IObservable<T3>?>>, Func<T1?, T2?, T3?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet, T1, T2>(Expression<Func<RoutedViewHost, IObservable<T1>?>>, Expression<Func<RoutedViewHost, IObservable<T2>?>>, Func<T1?, T2?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet>(Expression<Func<RoutedViewHost, IObservable<TRet>?>>) IObservable<TRet>
Observe a observable which is set to a property, and automatically subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet>(Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet>(Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet>(Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet>(Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet>(Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet>(Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet>(Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet>(Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet>(Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet>(Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<RoutedViewHost, TRet>(Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>, Expression<Func<RoutedViewHost, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
With<RoutedViewHost, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.