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();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With