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

DependencyResolverMixins.

RegisterViewsForViewModels(IMutableDependencyResolver, Assembly) Method

Summary

Registers inside the Splat dependency container all the classes that derive off IViewFor using Reflection. This is a easy way to register all the Views that are associated with View Models for an entire assembly.
Namespace
ReactiveUI
Containing Type
DependencyResolverMixins

Syntax

public static void RegisterViewsForViewModels(this IMutableDependencyResolver resolver, Assembly assembly)

Parameters

Name Type Description
resolver IMutableDependencyResolver The dependency injection resolver to register the Views with.
assembly Assembly The assembly to search using reflection for IViewFor classes.

Return Value

Type Description
void