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

DependencyResolverMixins.

RegisterViewModel<TViewModel>(IMutableDependencyResolver, Func<TViewModel>, string?) Method

Summary

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

Syntax

public static IMutableDependencyResolver RegisterViewModel<TViewModel>(this IMutableDependencyResolver dependencyResolver, Func<TViewModel> viewModelFactory, string? contract = null) 
    where TViewModel : class, IViewModel

Type Parameters

Name Description
TViewModel The type of the view model.

Parameters

Name Type Description
dependencyResolver IMutableDependencyResolver The dependency resolver.
viewModelFactory Func<TViewModel> The viewmodel factory.
contract string? The contract.

Return Value

Type Description
IMutableDependencyResolver The dependencyResolver.