Hi,
When using a VirtualizingPanel (which is our VirtualizingWrapPanel and the MS VirtualizingStackPanel) playing with the visibility of the items is very tricky. These panels should start generating their containers based on the items count of the ItemsControl's items because they do not have any realized children. This is not the case with MS WrapPanel, it generates all items so it can easily check when a container is visible or not. The MS VirtualizingStackPanel also has a problem when the containers are not visible. On the first side, there is no gap problem, because there all containers are on top of each other, but the issue can be reproduced when we have many invisible containers - then the thumb of the scrollbar is not correctly calculated. The scenario should be resolved by introducing a mechanism for filtering the items in the ItemsControl on item level (i.e. filtering the source collection) or adding/removing a data item from it.
Regards,
Yoan
Progress Telerik