Skip to content

Adds ComboBox dropdown background brush - #4059

Merged
Keboo merged 4 commits into
masterfrom
keboo/add-comboboxassist-dropdownbackground
Aug 21, 2026
Merged

Adds ComboBox dropdown background brush#4059
Keboo merged 4 commits into
masterfrom
keboo/add-comboboxassist-dropdownbackground

Conversation

@Keboo

@Keboo Keboo commented May 29, 2026

Copy link
Copy Markdown
Member

Introduces a dedicated theme resource, MaterialDesign.Brush.ComboBox.DropDown.Background, to provide explicit control over the background color of ComboBox dropdowns.

This change ensures consistent application of the dropdown background across various ComboBox styles, including those in DataGrids. It also simplifies the internal logic for how the popup background is applied, removing an unnecessary converter.

A new UI test verifies that the ComboBox popup correctly utilizes this dedicated background resource when no explicit background is set.

Fixes #3887

@Keboo
Keboo force-pushed the keboo/add-comboboxassist-dropdownbackground branch from ea0640b to 4e508ed Compare June 12, 2026 04:28
@Keboo Keboo added this to the 5.3.3 milestone Jun 12, 2026
@Keboo
Keboo enabled auto-merge (squash) June 12, 2026 04:28
Keboo added 3 commits August 20, 2026 21:09
Introduces `MaterialDesign.Brush.ComboBox.DropDown.Background` to provide specific theming for the ComboBox and DataGridComboBox dropdown. This change moves away from relying on the general `MaterialDesign.Brush.Background` or a complex binding setup, allowing for consistent and explicit control over the dropdown's visual style. It also removes the `RemoveAlphaBrushConverter` usage for applying the background.

Fixes #3887.
Refactors the ComboBox popup background UI test to use a direct helper for
retrieving the color value. This eliminates the need for manual casting and
null checks on the brush type, making the assertion more concise.
Updates the .NET SDK and various NuGet packages, including TUnit, Microsoft.CodeAnalysis, and CommunityToolkit.Mvvm. Refactors test assertions to use native TUnit methods like IsTrue, IsFalse, and IsNull for better clarity, and removes custom assertion extensions that are no longer required.
@Keboo
Keboo force-pushed the keboo/add-comboboxassist-dropdownbackground branch from 4e508ed to f85bb39 Compare August 21, 2026 04:13
Introduces a dedicated `DropDowns.Background` property to the `ComboBox` theme
object, allowing programmatic control over the `MaterialDesign.Brush.ComboBox.DropDown.Background`
brush. This formalizes the dropdown background as a configurable theme aspect
within the `Theme` definition and sets its default values for light and dark themes.
@Keboo
Keboo merged commit 2a00ffb into master Aug 21, 2026
3 checks passed
@Keboo
Keboo deleted the keboo/add-comboboxassist-dropdownbackground branch August 21, 2026 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add ComboBoxAssist.DropDownBackground to allow customizing the dropdown background color

1 participant