Hi, I want to implement a filter mechanism, just like VS2013 has.
However, as expected, the performance is poor. This is because when filtering, or when clearing the filters, the whole collection is being replaced, which makes the tree create all of the tree view items all over again.
If using UIVirtualization (which is not enabled by default), the results are much better, however, UIVirtualization sucks in that manner. The scroll is not smooth (because new tree view items are being created while scrolling). Furthermore, the scroll size is not accurate, and it keeps increasing while scrolling, so this is out of the question!
We have the 2012 controls, and I was expecting that this kind of problem will be fixed, and a feature like that would be out of the box (but it isn't).
I want to implement it using Visibility, however, it appears that you didn't think it through!
Although now the space is not reserved for the item is you change the ItemVisibility to collapsed, but this is why happens when you hide items.
If last child is being hidden, then the previous child still has the vertical line continuing like it still exists.
If all children are being hidden. then its parent still have the expander active... Look at the attached images.