[DarkMode]: TabControl doesn't render tab titles correctly when SizeMode = Fixed
.NET version
10.0.100-rc.1.25451.107
Did it work in .NET Framework?
No
Did it work in any of the earlier releases of .NET Core or .NET 5+?
N/A
Issue description
When dark mode is enabled, the tab page titles doesn't render correctly when TabControl.SizeMode = Fixed:
If you minimize or resize the window, it will be displayed correctly (if TabControl.Dock = Fill):
In classic mode works as expected:
And since TabControl didn't support Dark Mode in .NET 9, works as expected:
Steps to reproduce
- Create a new Windows Forms App
- Set the dark mode in Program.cs
Application.SetColorMode(SystemColorMode.Dark);
- Add a new TabControl to the Form1
- Set
tabControl1.SizeModetoFixedvia the Designer. - Set
tabControl1.DocktoFillvia the Designer (optional).
If not setting the tabControl1.Dock to Fill, the issue will persist indefinitely and cannot be resolved with minimize or resize the window.
https://github.com/user-attachments/assets/668bdbff-7f71-4093-9eb4-186d5f6d26df
This issue is introduced by commit 57fd18b.
@KlausLoeffelmann getting this one on your radar too.