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

DefaultViewLocator Class

Summary

Default implementation for IViewLocator. The default ViewModelToViewFunc behavior is to replace instances of "View" with "ViewMode" in the Fully Qualified Name of the ViewModel type.
Namespace
ReactiveUI
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IViewLocator"] click Interface0 "/api/ReactiveUI/IViewLocator" Type-.->Interface1["IEnableLogger"] click Interface1 "/api/Splat/IEnableLogger" Type["DefaultViewLocator"] class Type type-node

Syntax

public sealed class DefaultViewLocator : IViewLocator, IEnableLogger

Properties

Name Value Summary
ViewModelToViewFunc Func<string, string>
Gets or sets a function that is used to convert a view model name to a proposed view name.

Methods

Name Value Summary
ResolveView<T>(T?, string?) IViewFor?
Returns the view associated with a view model, deriving the name of the type via ViewModelToViewFunc, then discovering it via the service locator.

Extension Methods

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