.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.SizeMode
to Fixed
via the Designer.
- Set
tabControl1.Dock
to Fill
via the Designer (optional).