dotnet/winforms

[Dark Mode] Different Icon Display for Expanding Nodes with Child Items in TreeView

Open

#11 932 ouverte le 20 août 2024

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)C# (922 forks)batch import
area-DarkModehelp wanted

Métriques du dépôt

Stars
 (4 100 stars)
Métriques de merge PR
 (Merge moyen 14j 22h) (56 PRs mergées en 30 j)

Description

.NET version

9.0.0-rc.1.24414.1 + 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 icon for expanding nodes with child items in TreeView appears differently in Dark Mode compared to Classic. Please confirm if this is the expected behavior. Below are the results in Classic and Dark Mode

Classic Screenshot 2024-08-20 055045

Dark Mode Screenshot 2024-08-20 054838

Steps to reproduce

  1. Create a WinForms .NET Core application with TreeView control.
  2. Populate the TreeView with a parent node that contains several child nodes.
  3. Enable DarkMode by Application.SetColorMode(SystemColorMode.Dark) in Program.cs file.
  4. Run the application.
  5. Observe the expand icon

Guide contributeur