.NET version
.NET11 SDK build: 11.0.100-rc.1.26413.103 + private dlls built from main branch of Winforms repo
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Yes, it's a preview regression, regressed from .NET 11 Preview7 milestone
Issue description
When repeatedly creating and immediately closing parent and child forms, transient window flashing is clearly visible in Classic Mode but is barely or not observable at all in Dark Mode.
The same code path is executed in both modes. The forms are successfully created, shown, and closed. However, the visual presentation behavior differs significantly between Classic Mode and Dark Mode.
This makes Dark Mode behavior inconsistent with Classic Mode and may indicate an issue in WinForms Dark Mode rendering or window presentation timing.
Also repro in FormOwnerTest in https://github.com/dotnet/winforms/tree/main/src/test/integration/WinformsControlsTest app under DarkMode
DarkMode:
ClassicMode:
Steps to reproduce
WinFormsApp119.zip
In app's Program.cs file, comment and uncomment the following code line to run and observe:
Application.SetColorMode(SystemColorMode.Dark);
.NET version
.NET11 SDK build: 11.0.100-rc.1.26413.103 + private dlls built from main branch of Winforms repo
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Yes, it's a preview regression, regressed from .NET 11 Preview7 milestone
Issue description
When repeatedly creating and immediately closing parent and child forms, transient window flashing is clearly visible in Classic Mode but is barely or not observable at all in Dark Mode.
The same code path is executed in both modes. The forms are successfully created, shown, and closed. However, the visual presentation behavior differs significantly between Classic Mode and Dark Mode.
This makes Dark Mode behavior inconsistent with Classic Mode and may indicate an issue in WinForms Dark Mode rendering or window presentation timing.
Also repro in FormOwnerTest in https://github.com/dotnet/winforms/tree/main/src/test/integration/WinformsControlsTest app under DarkMode
DarkMode:
ClassicMode:
Steps to reproduce
WinFormsApp119.zip
In app's Program.cs file, comment and uncomment the following code line to run and observe:
Application.SetColorMode(SystemColorMode.Dark);