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.

5
  • Why don't you show all items in a single ListBox? You may have different DataTemplates for different item types. Commented Feb 6, 2019 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. Commented Feb 6, 2019 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 ! Commented Feb 6, 2019 at 14:27
  • Thanks and sadly, yes, some people do want that, although personally I don't think it's very useful :) Commented Feb 6, 2019 at 18:07
  • The ListBox can also do grouping, and you can control how to sort its items. Commented Feb 7, 2019 at 14:26

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.