winforms
winforms copied to clipboard
[HC] The icon of "Browse..." in PropertyGrid control is unclear when non-selecting it
.NET version
.NET 8.0.100-alpha.1.22451.15
Did it work in .NET Framework?
Yes
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 "Browse..." is unclear when non-selecting it.
HC Aquatic theme:
HC Dusk theme:
HC Night Sky theme:
Expected Behavior:
The icon of "Browse..." should be clear when non-selecting it.
HC Aquatic theme:
HC Dusk theme:
HC Night Sky theme:
Steps to reproduce
- Turn on High Contrast theme in Windows settings
- Create a WinForms .NET core project
- Add a PropertyGrid control and resize it
- Choose it "SelectedObject"properties to "Form1"
- Ctrl+Shift+A add a Application Manifest File and uncomment windows 10
- Build and run
- Observe the icon of "Browse..."
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 cannot repro on framework project.
@dmitrii-drobotov / @vladimir-krestov - what is the difference between the glyphs in .NET and .NET Framework? Do we do anything different on our end?
@dmitrii-drobotov / @vladimir-krestov - what is the difference between the glyphs in .NET and .NET Framework? Do we do anything different on our end?
Yes, it was changed in #886. The difference is that now there is a white border around dots (left is the old icon, right is the current one):
@NikitaSemenovAkvelon - do you think we could reuse the same approach as in #8507 for this issue?
@dmitrii-drobotov, yeah, I guess it would work here.
Verified this issue in the latest .NET 8.0 SDK build: 8.0.100-preview.7.23323.19, it was fixed that icon of "Browse..." is clear now in both Win 10 and Win 11 OS High Contrast themes.
Win 10:
Win 11:
Verified this on .NET 8.0 TP build in Win11 22H2 & Win10 22H2 OS: 8.0.100-preview.6.23328.9, issue was fixed, result is same as above test result.