I need to use the Treeview with data source that can contain hundreds or even thousands of nodes with levels that can drill down to a depth of 50 levels or more.
I've read the Chapter dedicated to virtualization of the source and I've implemented the IVirtualTree interface in the class I use as ItemsSource.
Unfortunately after activating virtualization as in the sample, assigning the Items Source loaded with my data to the Treeview just blocks the UI and nothing is visible.
Eliminating the Virtualization properties the Data is shown after a Long delay when the nodes are more than a hundred.
What I'm not understanding, as said in the Subject is How to avoid the tree from expanding automatically all nodes so that the initial rendering is limited to the root node and the first level nodes and the underlying nodes are shown (and I hope rendered) only when expanded.