Skip to content

[DarkMode]: TabControl doesn't render tab titles correctly when SizeMode = Fixed #13873

@peymanr34

Description

@peymanr34

.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:

Image

If you minimize or resize the window, it will be displayed correctly (if TabControl.Dock = Fill):

Image

In classic mode works as expected:

Image

And since TabControl didn't support Dark Mode in .NET 9, works as expected:

Image

Steps to reproduce

  1. Create a new Windows Forms App
  2. Set the dark mode in Program.cs
Application.SetColorMode(SystemColorMode.Dark);
  1. Add a new TabControl to the Form1
  2. Set tabControl1.SizeMode to Fixed via the Designer.
  3. Set tabControl1.Dock to Fill via the Designer (optional).

Metadata

Metadata

Assignees

Labels

area-DarkModeIssues relating to Dark Mode feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions