wpf icon indicating copy to clipboard operation
wpf copied to clipboard

Fluent2 Editable ComboBox Issues

Open robert-abeo opened this issue 11 months ago • 3 comments

Description

The Fluent2 Editable ComboBox has a few issues:

  1. Background doesn't change when editing text (focused)
  2. It ideally needs to have the same border style as TextBox when unfocused. However, this may be a design decision (I disagree with) to keep an editable ComboBox looking more like a traditional ComboBox rather than a TextBox.

This is most noticeable in dark theme.

Reproduction Steps

.NET 9 Fluent theme ComboBox with IsEditable="True"

Expected behavior

Editable ComboBox should match closely with TextBox styling.

Actual behavior

Unfocused ComboBox (top) is missing the more prominent "underline" bottom border indicating it is a text input.

Image

A focused ComboBox does not change the background when entering text.

Image

... as compared to TextBox

Image

Regression?

No response

Known Workarounds

No response

Impact

No response

Configuration

No response

Other information

No response

robert-abeo avatar Feb 18 '25 23:02 robert-abeo

Yes, I agree that editable ComboBox should match closely with TextBox styling.

The editing ComboBox in WinUI 3:

lindexi avatar Feb 19 '25 00:02 lindexi

I agree that Editable ComboBox should be nearer in style to a TextBox, like in case of focused and selection states.

However that would also mean that we are departing a little from what WinUI does.

Comments ? I will try to discuss this with internal design team and see what opinions they have.

dipeshmsft avatar Apr 25 '25 11:04 dipeshmsft

@dipeshmsft Editable ComboBoxes was a late addition to UWP/WinUI and left a few things to be desired if I recall correctly. WPF was always more functional in this area.

That said, I think you are incorrect. What I'm asking for is exactly what is already done in WinUI. When I edit a combobox in the WinUI3 gallery it is as expected and is designed to look just like a TextBox. (background changes on focus, bottom border it accent color, etc.)

Image

robert-abeo avatar Apr 25 '25 13:04 robert-abeo