Skip to content

Controls inside GroupBox no longer reflect inherited ForeColor/BackColor updates in VisualStylesMode.Net11 #14778

Closed

Description

@Amy-Li03

.NET version

.NET 11.0.100-preview.7.26365.114 + Private dlls built from Net11/Integration-3 branch of https://github.com/KlausLoeffelmann/winforms repo

Did it work in .NET Framework?

Yes

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.
Image
Behavior differs from VisualStylesMode.Classic.

Image

Issue#2:
When a GroupBox BackColor is changed, a Button contained within the GroupBox unexpectedly reflects inherited BackColor updates with VisualStylesMode.Net11 mode.
Image
Behavior differs from VisualStylesMode.Classic.

Image

Steps to reproduce

  1. Create a WinForms application targeting .NET 11
  2. Set VisualStylesMode = VisualStylesMode.Net11
  3. Add a GroupBox to form designer and update its BackColor and ForeColor
  4. Add Button and CheckBox to GroupBox
  5. Observe the BackColor and ForeColor of Button and CheckBox

Activity

  1. added
    untriaged
    on Jul 20, 2026
  2. added
    📖 documentation: breaking
    NewApi-Net11
    and removed
    untriaged
    on Jul 20, 2026
  3. KlausLoeffelmann commented on Jul 20, 2026

    @KlausLoeffelmann
    Member

    I need to take a look.
    Some modes are taking the WindowsAccentColor as the default - I need to test the combinations here.

  4. 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
  5. added
    rendering-or-artifacts-issues
    on Jul 21, 2026
  6. self-assigned this
    on Aug 24, 2026
  7. removed
    📖 documentation: breaking
    on Sep 3, 2026
  8. Olina-Zhang commented on Sep 10, 2026

    @Olina-Zhang
    Member

    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:

    Image
  9. locked and limited conversation to collaborators on Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

NewApi-Net11rendering-or-artifacts-issues

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions