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
Loading
SimonPosted Dec 13, 2010, 5:09 AM
To apply a template selector to a grid, dockpanel what so ever you have to use the "ContentPresenter" in XAML.
Within the ContentPresenter it is possible to define a ContentTemplateSeletor.
Regards,
Simon
SimonPosted Dec 13, 2010, 5:02 AM
I will have a look right now.
Regards,
Simon
E/
Well this is not exactly what I am looking for. Thanks anyway :)
CrishPosted Dec 13, 2010, 4:27 AM
If you want to get more detail about template selector than just go for this below link.
http://processwire.com/api/selectors/