methylium/ReactiveApp — pull request #12 by jlaanstra (2014-05-08 11:26:51+00:00)
Title: View locator

This PR adds an implementation of the `IViewLocator` interface.

## How does it work?

Views are registered via their implementation of the `IViewFor` interface, where T is a viewmodel type. To make this easy the following extension methods are available:

```C#
Locator.CurrentMutable.RegisterView(Type viewModelType, Type viewType, string contract = null);

Locator.CurrentMutable.RegisterView(string contract = null);
```

View types are resolved by the View Locator by looking for a registration of `IViewFor` where T is the viewmodel we need a view for.