winforms
winforms copied to clipboard
[Dark Mode] the text of the disabled items still is visible after focus on it by using mouse when setting the RenderMode as System
.NET version
latest .NET 10.0 build
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Not reproduce 10.0 Preview4 that all disabled items cannot be focused by using mouse.
Issue description
The text of the disabled items still is visible after focus on it by using mouse when setting the RenderMode as System Expected Results:
https://github.com/user-attachments/assets/9122b887-2129-474a-bba6-987ba11a2c6b
Actual Results:
https://github.com/user-attachments/assets/a78f1881-59dc-48c7-ad01-5960c9d31b39
Steps to reproduce
- Create a .NET winforms project with a MenuStrip control
- Setting the RenderMode property as System for menuStrip1
- Add some subitems for the menustrip1, and set the Enable as False for the subitem
- Set app under Dark mode in program.cs file:
Application.SetColorMode(SystemColorMode.Dark); - Run the application
More info:
- The issue cannot reproduce when setting the RenderMode as ManagerRenderMode/Professional