Different types of template selector
Hi folks,
I want to use a template selector to switch between different user controls.
Everything worked fine so far. I have used a CellTemplateSelector in a GridView, an
ItemTemplateSelector in a listview and so on.
Now I want to display a custom user control depending on a value chosen by the user.
How can I use a template selector, let's say, in a Grid or Dockpanel?
There must be a way to apply a template selector to these panels?!
I haven't found anything on the web so far, but I assume that there must be something like a ContentTemplateSelector for panels or something similiar.
I appreciate any help.
Regards,
Simon