dotnet / dotnet/winforms

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

Open
#12,042 2 comments 0 reactions 1 assignee Claimed by @KlausLoeffelmann View on GitHub
:construction: work in progress area-DarkMode help wanted
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

### .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: https://github.com/dotnet/winforms/pull/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](https://github.com/user-attachments/assets/197881bf-5284-493c-b665-ee5d47c9541c)
![GHNewIssue](https://github.com/user-attachments/assets/ef56d197-d975-4edc-8d43-a87032094171)

### 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](https://github.com/user-attachments/files/16862091/ReproduceApplication.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.