Use VirtualizingStackPanel with multiple ListBox inside ScrollViewer

81 views Asked by At

I have multiple ListBoxes below each other inside a ScrollViewer. These listboxes contain a different number of items (the actual number is not known before loading). These listboxes need to be shown like this for UI flow and to get a single scrollbar. However, the ScrollViewer disables the working of the VirtualizingStackPanel.

Because sometimes a few of these listboxes can get thousands of items in them, this doesn't really perform that well. I was wondering if there's any way to still use the VirtualizingStackPanel for non-visible items within the ScrollViewer.

0

There are 0 answers