Skip to content

Conversation

h3xds1nz
Copy link
Member

@h3xds1nz h3xds1nz commented May 26, 2025

Fixes #10629

Description

Replaces StackPanel as ItemsHost with ItemsPresenter to align the ComboBox dropdown menu with rest of the themes and support grouping properly. Noticed this isn't fixed in #10818 either so doing it here.

Customer Impact

Without taking this fix, using grouping templates is not feasible.

Regression

Not really, this has been the case since grabbing the template from WpfUi.

Testing

Local build, testing different grouping scenarios, repro in #10629, confirming it works.

Risk

Low.

Microsoft Reviewers: Open in CodeFlow

@h3xds1nz h3xds1nz requested a review from a team as a code owner May 26, 2025 09:40
@dotnet-policy-service dotnet-policy-service bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions labels May 26, 2025
@codecov
Copy link

codecov bot commented May 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 2.98814%. Comparing base (57fe8ac) to head (fa61274).
Report is 11 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main     #10878          +/-   ##
===================================================
- Coverage   13.48885%   2.98814%   -10.50071%     
===================================================
  Files           3317       3319           +2     
  Lines         664749     664895         +146     
  Branches       74643      74675          +32     
===================================================
- Hits           89667      19868       -69799     
- Misses        572488     644846       +72358     
+ Partials        2594        181        -2413     
Flag Coverage Δ
Debug 2.98814% <ø> (-10.50071%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@harshit7962 harshit7962 merged commit 061f046 into dotnet:main May 27, 2025
8 checks passed
@harshit7962
Copy link
Member

Thank you @h3xds1nz for the fix!

@h3xds1nz
Copy link
Member Author

@harshit7962 Thanks :)

dipeshmsft added a commit to dipeshmsft/wpf that referenced this pull request Jun 3, 2025
dipeshmsft added a commit that referenced this pull request Jun 3, 2025
* Fixed ComboBox style and template

* Addressed PR Review comments

* Addressed BorderThickness issue

* Removed extra variables

* Rebased the branch to use the new theme file genenration

* Reintroduced ComboBox popup grouping fix #10878
@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage Win 11 Theming

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ComboBox Grouping Template

2 participants