Skip to content

Adds ComboBox dropdown background brush#4059

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

Adds ComboBox dropdown background brush#4059
Keboo wants to merge 2 commits into
masterfrom
keboo/add-comboboxassist-dropdownbackground

Conversation

@Keboo
Copy link
Copy Markdown
Member

@Keboo Keboo commented May 29, 2026

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 May 28, 2026 23:42
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.
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