Skip to content

[Dark Mode] The nodes of TreeView not in dark mode when editing it #12042

Closed

Description

@Zheng-Li01

.NET version

.NET 9.0.100-rc.2.24453.35

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: #11857

Issue description

The nodes of TreeeView not in dark mode when editing it, and the issue also can reproduce ItemView item when editing it.
image
GHNewIssue

Steps to reproduce

  1. Create a .NET Winforms project with TreeView control.
  2. Add some node for treeview1, and set the LabelEdit value as True.
  3. Enable DarkMode by Application.SetColorMode(SystemColorMode.Dark) in Program.cs file
  4. Build and run the application
  5. Edit the node, and observe the results.

Reproduce application:
ReproduceApplication.zip

Activity

  1. added
    untriaged
    area-DarkMode
    on Sep 4, 2024
  2. changed the title [-][Dark Mode] The nodes of TreeeView not in dark mode when editing it[/-] [+][Dark Mode] The nodes of TreeView not in dark mode when editing it[/+] on Sep 4, 2024
  3. removed
    untriaged
    on Sep 4, 2024
  4. added this to the .NET 10.0 milestone on Sep 4, 2024
  5. added
    help wanted
    on Sep 4, 2024
  6. added
    untriaged
    help wanted
    and removed
    help wanted
    untriaged
    on Sep 4, 2024
  7. pcblues commented on Dec 21, 2024

    @pcblues

    I have completed the modifications to show the edit labels in the dark theme for the TreeView and ListView.

    Is it standard behaviour in the ListView in Dark Mode for the selected focused ListItem to be blue?

    Image

  8. added
    🚧 work in progress
    on Dec 23, 2024
  9. pcblues commented on Apr 6, 2025

    @pcblues

    Hi @KlausLoeffelmann, do you still want me to update my PR? I haven't touched it for a while, but I've got some time tonight to work out what I did last time :) I'll have a shot anyway.

    Cheers.

  10. added theissue type on May 5, 2025
  11. Zheng-Li01 commented on Oct 30, 2026

    @Zheng-Li01
    MemberAuthor

    Verified the issue with private dlls built from main branch of dotnet/winforms repo + .NET SDK 11.0.100-rc.3.26522.148 build, the issue has been fixed as below screenshot.
    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

🚧 work in progressarea-DarkModehelp wanted

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions