winforms
winforms copied to clipboard
[HC] The icon of "AddNew" in DataGridView control is unclear
.NET version
.NET 8.0.100-alpha.1.22451.15
Did it work in .NET Framework?
No
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No, it is not a regression issue
Issue description
Current Behavior:
The icon of "AddNew" in DataGridView control is unclear.
HC Aquatic theme:
HC Dusk theme:
HC Night Sky theme:
Expected Behavior:
The icon of "AddNew" in DataGridView control should be clear.
win11 HC Desert theme:
win10 HC White theme:
Steps to reproduce
- Turn on High Contrast theme in Windows settings
- Create a WinForms .NET core project
- Add a DataGridView control
- Expand smart tag and click "Add column..." to add a column
- Ctrl+Shift+A add a Application Manifest File and uncomment windows 10
- Build and run
- Observe the icon of "AddNew"
More info:
- This issue cannot repro on win11 HC Desert theme.
- This issue is repro on win10 machine but cannot repro on win10 HC White theme.
- This issue can repro on framework project.
Looks like the glyph needs to be filled in with white in those themes rather than just outlined in white.
Verified on latest .NET 8.0.100-preview.2.23101.9, issue is fixed. Screenshot as below:
Win10:
HC #1 theme:
HC #2 theme:
HC Black theme:
HC White theme:
Win11:
HC Aquatic theme:
HC Desert theme:
HC Dusk theme:
HC Night sky theme:
Verified with .NET 8 Preview 1 TP build: .NET 8.0.100-preview.1.23108.10, issue was fixed as same as above test result.