[Dark Mode] The Spinner button of Tabcontrol not in DarkMode when adding the TabPage items by using TabPages property in the PropetyGrid control
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 1.1k
- Avg merge
- 20h 23m
- Merged PRs (30d)
- 103
Description
### .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.
https://github.com/user-attachments/assets/0c91db04-001f-4f43-884b-174d864bf51f
### 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
Contributor guide
Assessment
This issue has not been assessed yet.