Repository navigation
ComboBox - fix disappearing items - #1079
Closed
davidjohnoliver wants to merge 4 commits into
Closed
davidjohnoliver wants to merge 4 commits into
davidjohnoliver wants to merge 4 commits into
Conversation
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.
carldebilly
approved these changes
Jun 17, 2019
4 of 7 tasks
jeromelaban
approved these changes
Jul 4, 2019
jeromelaban
left a comment
Member
There was a problem hiding this comment.
Is this something that can be tested ?
Contributor
Author
Yep. :) Note that I've included these changes in #1134, I'll add the tests there. |
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 #1078
Improves handling of the case where items (in Items or ItemsSource) are views. This case is tricky because the SelectedItem needs to be displayed in the dropdown list when the dropdown is open, and inside the ComboBox's template when it's not.
PR Type
What kind of change does this PR introduce?
Bugfix
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Other information
Internal Issue (If applicable):