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
80
XamDataTreeNode Control gets reset when scrolled
posted

I have a DataTree where I hide Nodes without children and also dynamically change the displayed "Control Content"  for the nodes based on what their type is. I do this by using the NodeExpansionChanged event. The problem I'm having is that when I scroll so that some nodes leave the view and then scroll back, the control values get reset. So, the empty nodes that were hidden are now visible and all nodes show their original content.

I've attached a sample project. This issue can be replicated by keeping the window small then expanding all the nodes. Once you scroll down then scroll back up the node content will be reset.

XamDataTree.zip