You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Controls inside GroupBox no longer reflect inherited ForeColor/BackColor updates in VisualStylesMode.Net11 #14778
NewApi-Net11Tracks issues for public APIs targeted for .NET 11.rendering-or-artifacts-issuesControls paint themselves, sometimes "outside their borders." Primarily looks, not function.
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Not support, new feature
Issue description
Issue#1:
When a GroupBox ForeColor is changed at design time, child controls such as Button and CheckBox do not update their text color accordingly with VisualStylesMode.Net11 mode.
Behavior differs from VisualStylesMode.Classic.
Issue#2:
When a GroupBox BackColor is changed, a Button contained within the GroupBox unexpectedly reflects inherited BackColor updates with VisualStylesMode.Net11 mode.
Behavior differs from VisualStylesMode.Classic.
Steps to reproduce
Create a WinForms application targeting .NET 11
Set VisualStylesMode = VisualStylesMode.Net11
Add a GroupBox to form designer and update its BackColor and ForeColor
Add Button and CheckBox to GroupBox
Observe the BackColor and ForeColor of Button and CheckBox
📖 documentation: breakingplease open a breaking change issue https://github.com/dotnet/docs/issues/new?assignees=gewarren
NewApi-Net11Tracks issues for public APIs targeted for .NET 11.
and removed
untriagedThe team needs to look at this issue in the next triage
changed the title [-][VisualStylesMode: Net11] Controls inside GroupBox no longer reflect inherited ForeColor/BackColor updates in VisualStylesMode.Net11[/-][+]Controls inside GroupBox no longer reflect inherited ForeColor/BackColor updates in VisualStylesMode.Net11[/+]on Jul 21, 2026
📖 documentation: breakingplease open a breaking change issue https://github.com/dotnet/docs/issues/new?assignees=gewarren
Verified in the latest .NET 11 RC2 build + dlls built from the latest main branch of Winforms repo, it was fixed when setting GroupBox 's BackColor and ForeColor:
NewApi-Net11Tracks issues for public APIs targeted for .NET 11.rendering-or-artifacts-issuesControls paint themselves, sometimes "outside their borders." Primarily looks, not function.
Activity
KlausLoeffelmann commentedon Jul 20, 2026
I need to take a look.
Some modes are taking the WindowsAccentColor as the default - I need to test the combinations here.
[-][VisualStylesMode: Net11] Controls inside GroupBox no longer reflect inherited ForeColor/BackColor updates in VisualStylesMode.Net11[/-][+]Controls inside GroupBox no longer reflect inherited ForeColor/BackColor updates in VisualStylesMode.Net11[/+]Olina-Zhang commentedon Sep 10, 2026
Verified in the latest .NET 11 RC2 build + dlls built from the latest main branch of Winforms repo, it was fixed when setting GroupBox 's BackColor and ForeColor: