Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
745
HierarchicalDataTemplate and arbitrary number of levels?
posted

Hi,

I'm sure there's a simple answer to this question, however, I can't make hierarchical templating work for trees with arbitrary numbers of levels.
How do I do that? The only way I am able to display my items is to define a HierarchicalDataTemplate for each level, but that's obviously the wrong approach since that would make it impossible to create trees with an arbitrary number of levels.

Thanks!