winforms
winforms copied to clipboard
[DarkMode] the item lost dot line when using the mouse to expand the dropdown panel for the Dock/TextAlign/ImageAlign/CheckAlign properties
.NET version
latest .NET SDK 10.0.1
Did it work in .NET Framework?
No
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Yes, the issue does not reproduce on .NET SDK 9.0
Issue description
The items lost dot line when using the mouse to expand the dropdown panel for the Dock/TextAlign/ImageAlign/CheckAlign properties
https://github.com/user-attachments/assets/fdc582a0-8103-448d-817f-4a13b96dc909
Steps to reproduce
- Create a new Windows Forms application
- Add a Button & a PropertyGrid control to the form
- propertyGrid1 selected the button1 as object
- Set app under Dark mode in program.cs file:
- Application.SetColorMode(SystemColorMode.Dark);
- Run the application
- Use mouse to expand dropdown panel for the ImageAlign property
- Observe the dot line for the items in the dropdown panel
More info: The issue does not reproduce when using the keyboard to expand the dropdown panel, such as Enter keyboard or Alt + Down arrow