title: WPF - automatic view resolving for view model
body: <p>I created library for Android that makes use of MVVM pattern easier. </p>
  
  <p>In my library I have special <code>ViewManager</code> class responsible for resolving appropriate view for given view model. Let me give you an example:</p>
  
  <pre><code>ViewManager.register(ViewModel.class, View.class);  // ViewModel will be now presented by View.
  // Now when, for example, tabbed view item will be "new ViewModel()"; it will automatically be presented by View.class
  </code></pre>
  
  <p>What would be a proper way to achieve that in WPF, so if i bind my <code>TabControl</code> items to collection of view models, it will automatically resolve appropriate view to display them from my <code>ViewManager</code>? </p>