Virtualized TreeView - Unstable scrolling behavior

Following this question and this question , I now have a TreeView with hierarchical data, as in the picture below

enter image description here

Due to the large amount of data, I wrapped the on ( ) Virtualizationproperty .TreeViewVirtualizingPanel.IsVirtualizing="True"

Now the problem is : tree scrolling is very unstable. I am trying to explain inexplicable behavior:

  • When scrolling, items simply disappear / unload. With the WPF Inspector , I really see them loading and loading over and over again.
  • 3 , ( ), 2 , 3 .

:

  • , Level2 .
  • ( , , )
  • , ​​ .Net 4.5.2. .Net 4.7.1. .

?

+6
1

ScrollUnit VirtualizingPanel ? ListViews, IsVirtualizing IsVirtualizingWhenGrouping true:

VirtualizingPanel.IsVirtualizing='True'
VirtualizingPanel.IsVirtualizingWhenGrouping='True'
VirtualizingPanel.ScrollUnit='Pixel'
0

All Articles