dotnet / dotnet/winforms

[Dark Mode] the DropDownButton of Type Here not in dark mode in DemoConsole application

Open
#12,039 1 comment 0 reactions 0 assignees View on GitHub
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 **DropDownButton** of **Type Here** not in dark mode.
![image](https://github.com/user-attachments/assets/2fbbf404-bcb1-4d23-9f85-b803468ac46c)

### Steps to reproduce

1. Clone the [DemoConsole](https://github.com/dotnet/winforms/tree/main/src/System.Windows.Forms/tests/IntegrationTests/DesignSurface/DemoConsole) in Winforms repo
2. Enable Dark mode by adding below code lines in the Program.cs file under DemoConsole project
```
#pragma warning disable WFO5001
Application.SetColorMode(SystemColorMode.Dark);
```
3. Build and run the DemoConsole project
4. Observe the color for the **DropDownButton** of **Type Here** item

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.