winforms icon indicating copy to clipboard operation
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

Open Zheng-Li01 opened this issue 1 month ago • 0 comments

.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

  1. Create a .NET winforms project with a MenuStrip control
  2. Setting the RenderMode property as System for menuStrip1
  3. Add some subitems for the menustrip1, and set the Enable as False for the subitem
  4. Set app under Dark mode in program.cs file: Application.SetColorMode(SystemColorMode.Dark);
  5. Run the application

More info:

  1. The issue cannot reproduce when setting the RenderMode as ManagerRenderMode/Professional

Zheng-Li01 avatar Nov 27 '25 07:11 Zheng-Li01