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

DependencyResolverMixins.

RegisterViewModel<TViewModel>(IMutableDependencyResolver, 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, string? contract = null) 
    where TViewModel : IViewModel, new()

Type Parameters

Name Description
TViewModel The type of the view model.

Parameters

Name Type Description
dependencyResolver IMutableDependencyResolver The dependency resolver.
contract string? The contract.

Return Value

Type Description
IMutableDependencyResolver The dependencyResolver.