0

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.

The Cookies Dog
  • 1,915
  • 2
  • 22
  • 38
  • Why don't you show all items in a single ListBox? You may have different DataTemplates for different item types. – Clemens Feb 06 '19 at 10:27
  • I've thought about that but the items are all grouped by a header that is different per listbox. I've been reviewing ListView (which can do grouping) but that's not really the same with its group headers and is also limited in terms of how to control the data order. – The Cookies Dog Feb 06 '19 at 10:53
  • 1
    I'm just walking-by person. Are you really sure that people want to scroll among veryvery long thousands items? Good Luck ! – Kay Lee Feb 06 '19 at 14:27
  • Thanks and sadly, yes, some people do want that, although personally I don't think it's very useful :) – The Cookies Dog Feb 06 '19 at 18:07
  • The `ListBox` can also do grouping, and you can control how to sort its items. – redcurry Feb 07 '19 at 14:26

0 Answers0