.NET version
.NET 11.0.100-preview.7.26365.114 + Private dlls built from Net11/Integration-2 branch of https://github.com/KlausLoeffelmann/winforms repo
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Not support, new feature
Issue description
After the introduction of VisualStyleMode, Button controls are rendered incorrectly in Dark Mode when the Form's VisualStyleMode is set to Classic. Not repro in VisualStyleMode = NET11
The button blends into the background because both the button surface and its text are rendered with very low contrast, making the control difficult to recognize and use.
Steps to reproduce
- Create a WinForms application targeting .NET 11.
- Set the Form's
VisualStyleMode to Classic.
- Add a Button to the Form.
- Enable the DarkMode in program.cs:
Application.SetColorMode(SystemColorMode.Dark);
- Run the application to observe.
.NET version
.NET 11.0.100-preview.7.26365.114 + Private dlls built from Net11/Integration-2 branch of https://github.com/KlausLoeffelmann/winforms repo
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Not support, new feature
Issue description
After the introduction of
VisualStyleMode,Buttoncontrols are rendered incorrectly in Dark Mode when the Form'sVisualStyleModeis set toClassic. Not repro inVisualStyleMode = NET11The button blends into the background because both the button surface and its text are rendered with very low contrast, making the control difficult to recognize and use.
Steps to reproduce
VisualStyleModetoClassic.Application.SetColorMode(SystemColorMode.Dark);