reactiveui/ReactiveUI — pull request #603 by rikbosch (2014-05-20 15:38:32+00:00)
Title: Add caching option to ViewModelViewHost in winforms to improve performance

This PR adds an optional caching behavior to the Winforms `ViewModelViewHost`.

Problem:
When the ViewModelchanges often, but is always of the same type, everytime a new control (and handle) is creating and the old one is disposed.

Solution:
By adding setting the `CacheViews` property to true on the `ViewModelViewHost`, the control presenting the viewmodel is only created new when the ViewModel Type changes

The default behavior can be set using the static `DefaultCacheViewsEnabled` property on the `ViewModelViewHost`.