dotnet/winforms
[DarkMode]The Form1 title bar change to white color after change the ShowInTaskbar property
已关闭
#12,992 创建于 2025年2月20日
area-DarkModehelp wanted
仓库指标
- 星标
- (4,100 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
.NET version
.NET 10.0.100-preview.2.25118.3
Did it work in .NET Framework?
No
Did it work in any of the earlier releases of .NET Core or .NET 5+?
No, also repro in .NET 9.0 which it started to be supported.
Issue description
The Form1 title bar change to white color after change the ShowInTaskbar property.
Steps to reproduce
- Create a winforms .NET Core project with a button control.
- Enable DarkMode by Application.SetColorMode(SystemColorMode.Dark) in Program.cs file.
- Double click button control and add below code to button click event. `this.ShowInTaskbar = !this.ShowInTaskbar;
- Build and run.
- Click button control.
More Info:
- This issue also repro in FormShowinTaskbar test in WinformsControlTest app.
https://github.com/user-attachments/assets/92e54b94-a73b-4524-bec7-cfaef740d089