Repository navigation
Virtualize ComboBox dropdown - #1061
Merged
Merged
Conversation
- Inherit CarouselPanel from VirtualizingPanel, use ItemsStackPanelLayout - amend ComboBox style to support virtualization
Make the case more robust where the list initially measures with a smaller desired size than what is available, ie the items don't fill all available space. This fixes a bug with the former logic where, after returning a smaller desired size than what was available, the list would be remeasured with that returned size, and then 'forget' that more space had been available.
Fix layout attributes not updating with dynamic sizes correctly, it seems that in some cases PreferredLayoutAttributesFittingAttributes() may be called out of order.
This can occur when Measure() is called outside of the usual loop, followed by ScrollIntoView().
davidjohnoliver
force-pushed
the
dev/djo/combobox-virt
branch
from
June 13, 2019 18:14
21c49fd to
0d75606
Compare
Contributor
Author
|
/azp run |
carldebilly
approved these changes
Jun 14, 2019
4 of 7 tasks
kazo0
added a commit
to kazo0/uno
that referenced
this pull request
Mar 6, 2026
Co-authored-by: Steve Bilogan <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue (If applicable): fixes #555
PR Type
What kind of change does this PR introduce?
Feature
What is the current behavior?
ComboBox dropdown isn't virtualized. Extremely slow for large numbers of items.
What is the new behavior?
Now it's virtualized.
PR Checklist
Please check if your PR fulfills the following requirements:
Breaking change:
ComboBoxhas a modified template (eg from overriding the defaultStyle), then theScrollViewerhosting theItemsPresenterneeds to have itsStyleset toStaticResource ListViewBaseScrollViewerStyle(as here). Eg:Other information
Internal Issue (If applicable):