dotnet/winforms

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

Open

#11,932 建立於 2024年8月20日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)C# (4,100 star) (922 fork)batch import
area-DarkModehelp wanted

描述

.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

貢獻者指南