Skip to content

Adds ComboBox dropdown background brush#4059

Open
Keboo wants to merge 3 commits into
masterfrom
keboo/add-comboboxassist-dropdownbackground
Open

Adds ComboBox dropdown background brush#4059
Keboo wants to merge 3 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 added 2 commits June 11, 2026 20:53
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.
@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
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.
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