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

DependencyResolverMixins.

RegisterView<TView, TViewModel>(IMutableDependencyResolver, Func<IViewFor<TViewModel>>, string?) Method

Summary

Registers the specified view with the Splat locator.
Namespace
Sextant
Containing Type
DependencyResolverMixins

Syntax

public static IMutableDependencyResolver RegisterView<TView, TViewModel>(this IMutableDependencyResolver dependencyResolver, Func<IViewFor<TViewModel>> viewFactory, string? contract = null) 
    where TView : IViewFor where TViewModel : class, IViewModel

Type Parameters

Name Description
TView The type of the view.
TViewModel The type of the view model.

Parameters

Name Type Description
dependencyResolver IMutableDependencyResolver The dependency resolver.
viewFactory Func<IViewFor<TViewModel>> The view factory.
contract string? The contract.

Return Value

Type Description
IMutableDependencyResolver The dependencyResolver.