wpf icon indicating copy to clipboard operation
wpf copied to clipboard

Fluent2: Controls Are NOT Designed for Custom Height

Open robert-abeo opened this issue 1 year ago • 1 comments

Description

Fluent2 controls suffer from a few issues with height:

  1. They are too tall by default. This is especially obvious with the ComboBox which is far too tall by default. I suspect the item margins/padding do not follow WinUI 3.
  2. Related with point 1, several controls are NOT designed for the default 32px height. I'm pretty sure this is the default in WinUI3 and needs to apply here as well?
  3. The controls do NOT support custom heights. I already noted this separately with the DatePicker calendar button. However, setting a forced height of 32px flatly doesn't work for ComboBox and has issues with DatePicker. All controls need to be audited.

Reproduction Steps

Controls with issues so far:

  • ComboBox
  • DatePicker

... please review for more. I will add them if/when I find them as well.

Expected behavior

See WinUI3 gallery

Actual behavior

See above

Regression?

No response

Known Workarounds

No response

Impact

No response

Configuration

No response

Other information

No response

robert-abeo avatar Jan 29 '25 17:01 robert-abeo

I just came across this when using a MenuBar. It looks ridiculous.

Forgive the crude screenshot examples but this is not right at all. The red lines are the same size below. On the left is MenuBar shown in the WinUI 3 Gallery, on the right is a WPF app running on .NET 10 preview with the Fluent theme.

Image

Notice how much smaller a native MenuBar is.

Image

But by far one of the most absurd problems is that for some reason it's aligning the menu item text to be directly in the middle at all times without taking the height into consideration.

Image

For reference this is what the default non-Fluent theme menu bar does:

Image

lloydjatkinson avatar Oct 26 '25 12:10 lloydjatkinson