fix(controls): Add ItemsPanel to ComboBox to enable GroupStyle support#1645
Merged
pomianowski merged 1 commit intolepoco:mainfrom Jan 13, 2026
Merged
fix(controls): Add ItemsPanel to ComboBox to enable GroupStyle support#1645pomianowski merged 1 commit intolepoco:mainfrom
pomianowski merged 1 commit intolepoco:mainfrom
Conversation
ComboBox was not rendering grouped items when using GroupStyle: only headers would display while items were missing. Added ItemsPanel with StackPanel to the ComboBox style to fix this behavior. Also added a grouped items example to the Gallery app for demonstration.
pomianowski
approved these changes
Jan 13, 2026
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.
This PR includes the following:
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
When using GroupStyle with a ComboBox, only the group headers would display: the actual items within each group were missing. This was because the ComboBox style was missing an ItemsPanel property that ListBox already had.
Issue Number: N/A
What is the new behavior?
Added the ItemsPanel setter to ComboBox.xaml:
A simple StackPanel is used instead of VirtualizingStackPanel because virtualization can conflict with GroupStyle rendering, and ComboBox dropdowns typically have fewer items where virtualization isn't needed.
Test plan
Other information