dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.36k stars 966 forks source link

[Dark Mode] Selection highlight doesn't move when quickly checking a node's checkbox in TreeView #11941

Open Syareel-Sukeri opened 3 weeks ago

Syareel-Sukeri commented 3 weeks ago

.NET version

9.0.0-rc.1.24418.2 + build private dll from winforms repo main branch

Did it work in .NET Framework?

No

Did it work in any of the earlier releases of .NET Core or .NET 5+?

This is a new feature Dark Mode: https://github.com/dotnet/winforms/pull/11857

Issue description

The selection highlight does not move to the checked node if the checkbox is clicked quickly when nodes are configured as checkboxes in Dark Mode.

Dark Mode

https://github.com/user-attachments/assets/588c3a01-5c25-423d-8de8-f0fe11e6061b

Classic

https://github.com/user-attachments/assets/83bcef4a-e023-4d38-9c93-c1540cc77355

Steps to reproduce

  1. Create a WinForms .NET Core application with TreeView control
  2. Configure a TreeView control with nodes that have checkboxes enabled.
  3. Enable DarkMode by Application.SetColorMode(SystemColorMode.Dark) in Program.cs file
  4. Run the application and open the TreeView.
  5. Click on any node to highlight it.
  6. Quickly click the checkbox of a different node without pausing between actions.
dotnet-policy-service[bot] commented 1 week ago

This issue is now marked as "help wanted", and we’re looking for a community volunteer to work on this issue. If we receive no interest in 180 days, we will close the issue. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!