I created library for Android that makes use of MVVM pattern easier.
In my library I have special ViewManager
class responsible for resolving appropriate view for given view model. Let me give you an example:
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
What would be a proper way to achieve that in WPF, so if i bind my TabControl
items to collection of view models, it will automatically resolve appropriate view to display them from my ViewManager
?