dotnet/winforms

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

Aberta

#11.932 aberto em 20 de ago. de 2024

 (1 comentário) (0 reação) (0 responsável)C# (922 forks)batch import
area-DarkModehelp wanted

Métricas do repositório

Stars
 (4.100 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador