Skip to content

[Dark Mode] The Spinner button of Tabcontrol not in DarkMode when adding the TabPage items by using TabPages property in the PropetyGrid control #14159

@Zheng-Li01

Description

@Zheng-Li01

.NET version

.NET SDK 11.0.100-alpha.1.25619.109

Did it work in .NET Framework?

No

Did it work in any of the earlier releases of .NET Core or .NET 5+?

The issue also can reproduce .NET 10.0 & .NET 9.0

Issue description

The Spinner button of Tabcontrol not in DarkMode when adding the TabPage items by using TabPages property in the PropetyGrid control, and the issue can be workaround after switching the Multiline property true then false.
Image

TabControlIssue.mp4

Steps to reproduce

  1. Create a .NET winforms project with TabControl & PropertyGrid controls
  2. Select the tabControl1 as object for the propertyGrid1
  3. Set app under Dark mode in program.cs file
    Application.SetColorMode(SystemColorMode.Dark);
  4. Run the application
  5. Add the tabPage items by using TabPage property in PropertyGrid
  6. Observe the status of Spinner button of tabControl1
  7. Switch the Multiline property to true, then back to false
  8. Add the tabPage items by using TabPage property in PropertyGrid
  9. Observe the status of Spinner button of tabControl1

Results:
After steps6, the Spinner button of tabControl1 not in DarkMode
After steps9, the Spinner button of tabControl1 in DarkMode

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