I set up a ContentControl.DataTemplateSelector to my desired one. I want that according to a command or whatever, call the ContentControl to reselect the template from the selector by either xaml or code.
Thank
Late to the party, I know. =)
When faced with this problem, I found it easiest to explicitly set a new TemplateSelector like
MyContentControl.ContentTemplateSelector = new MyDataTemplateSelector();
1.4m articles
1.4m replys
5 comments
57.0k users