I\'ll try to simplify the task I\'m working on by imagining this example:
Let\'s suppose that we have the following hierarchy of model classes:
Animal
Is it possible to deduce the necessary user control based on a ViewModel type?
You mean, like this?
See "Applying a View to a View Model" in Josh Smith's article on MVVM.
Edit:
Here's a trivial example of type-based template selection that you can paste into Kaxaml to prove to yourself that it really works:
this is a string
1234