Repository navigation
ComboBox virtualization, item kidnapping fixes - #1134
Merged
Merged
Conversation
Member
|
19 commits for that ? ;-) |
carldebilly
approved these changes
Jun 26, 2019
| using Windows.UI.Xaml.Media; | ||
| using Windows.UI.Xaml.Navigation; | ||
|
|
||
| // The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236 |
Member
There was a problem hiding this comment.
Usually I like to clean that up...
Contributor
Author
Member
|
/azp run |
3 of 7 tasks
Contributor
Author
|
TODO: Add UI tests for 'kidnapping' |
Member
|
|
2 of 7 tasks
- 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().
If SelectedItem is a view, ensure it's correctly placed in either the ContentPresenter or the dropdown list according to whether the dropdown is open. This fixes bug where the item would disappear from the ContentPresenter if the dropdown were light-dismissed without changing the selection, and makes the logic more robust in the case of a virtualized list.
Certain Styles application sequences can lead to the same ItemsPanelTemplate (but not reference-equal) being applied multiple times. As a perf improvement, don't reapply the panel. This also works around the issue on Android that changing the ItemsPanel of a ListView after it's already been materialized isn't properly supported and causes errors.
This is a significant perf optimization since UpdateLayout() is called very frequently while scrolling.
When ListView has non-Stretched breadth, item elements must be arranged with the list's breadth rather than their desired size. (Otherwise, eg, selected state highlight doesn't stretch to full width.)
Revert virtualization on these platforms because it breaks layouting (ComboBox dropdown stretches to full width of window). It can be reenabled when #1133 is fixed.
davidjohnoliver
force-pushed
the
dev/djo/combobox-virt-2
branch
from
July 15, 2019 19:32
3011c19 to
fe04884
Compare
davidjohnoliver
force-pushed
the
dev/djo/combobox-virt-2
branch
from
July 16, 2019 01:08
9ef06fa to
8fe277d
Compare
davidjohnoliver
force-pushed
the
dev/djo/combobox-virt-2
branch
from
July 16, 2019 01:56
8fe277d to
69658bd
Compare
This was referenced Jul 16, 2019
kazo0
added a commit
to kazo0/uno
that referenced
this pull request
Mar 6, 2026
…1134) 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, partially addresses #556 and #1133, fixes #1078
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
Items/ItemsSourcebeing 'kidnapped' when closing and openingComboBoxdropdown.PR Checklist
Please check if your PR fulfills the following requirements:
Other information
Internal Issue (If applicable):