is it possible to use two different DataTemplates in one WPF TreeView?
Maybe the first and second flat with yellow Background and the thirt flat with red Background.
Where is the right place for the distinction – in Code or in XAML?
Thanks for your ideas.
Different templates are possible in more than one ways…
Templates at various hierarchy levels.
Templates using selector.
One template with multiple data triggers setting various backgrounds.