[DarkMode]: TabControl doesn't render tab titles correctly when SizeMode = Fixed
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 1.1k
- Avg merge
- 20h 23m
- Merged PRs (30d)
- 103
Description
### .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
1. Create a new Windows Forms App
2. Set the dark mode in **Program.cs**
```csharp
Application.SetColorMode(SystemColorMode.Dark);
```
3. Add a new TabControl to the **Form1**
4. Set `tabControl1.SizeMode` to `Fixed` via the Designer.
5. Set `tabControl1.Dock` to `Fill` via the Designer (optional).
Contributor guide
Assessment
This issue has not been assessed yet.