When you design user interface in WPF there is often a necessity to change some view depending on some condition. Of course in some case you can use triggers, but if you want to use different templates depending on the type of the underlying object, System.Windows.Controls.DataTemplateSelector is ...
[More]