dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.39k stars 975 forks source link

[Accessibility] [HC] ComboBox control's FlatStyle is not displayed correctly in design and runtime when set FlatStyle property to Flat or Popup #7727

Closed John-Qiao closed 2 years ago

John-Qiao commented 2 years ago

.NET version

8.0.100-alpha.1.22430.2

Did it work in .NET Framework?

Yes

Did it work in any of the earlier releases of .NET Core or .NET 5+?

Yes, it works in .NET 6.0. 6 0-Aquatic

Issue description

On Windows 11 and Windows 10 all high contrast themes, the ComboBox control's FlatStyle is not displayed correctly in design and runtime when set FlatStyle property to Flat or Popup.

Windows 11 HC Aquatic/Desert/Dusk/Night Sky testing results: Win11-1 Win11-2 Win11-3 Win11-4

Windows 11 default theme: Win11-Expected

Windows 10 HC #1/#2/black/white testing result: Win10-1 Win10-2 Win10-3 Win10-4

Windows 10 default theme: Win10-Expected

Steps to reproduce

  1. Set OS' theme to high contrast.
  2. Open the TestApp.zip project.
  3. Open Form1 designer and observe the ComboBox controls in Flat and Popup columns.
  4. Run the project, and observe the ComboBox controls in Flat and Popup columns too.
merriemcgaw commented 2 years ago

@Tanya-Solyanik - for this one I think that the complaint is that we can see the borders, whereas in Win 10/11 the default theme shows with no/white borders. This is OK behavior, otherwise how could someone tell that there is a control there. I like the new look for the new themes and propose no change here. Thoughts?

merriemcgaw commented 2 years ago

Confirmed with @Tanya-Solyanik that this is now by design and we like it this way.