Skip to content

PropertyGrid exposes VisualStylesModeChanged event although VisualStylesMode is hidden #14803

Closed

Description

@Olina-Zhang

.NET version

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

Did it work in .NET Framework?

Not tested/verified

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

Not support, new feature of #14792

Issue description

PropertyGrid hides the VisualStylesMode property, but the corresponding VisualStylesModeChanged event is still exposed in the Events window.

Since PropertyGrid explicitly hides VisualStylesMode (Browsable(false)) and always reports VisualStylesMode.Classic, exposing the VisualStylesModeChanged event is inconsistent and may confuse developers.

Image

Steps to reproduce

  1. Create a WinForms (.NET 11) project.
  2. Add a PropertyGrid control to the Form.
  3. Select the PropertyGrid in the Designer.
  4. Verify that the VisualStylesMode property is not shown in the Properties window.
  5. Switch to the Events view to observe.

Activity

  1. added
    untriaged
    NewApi-Net11
    on Jul 22, 2026
  2. self-assigned this
    on Jul 27, 2026
  3. KlausLoeffelmann commented on Jul 27, 2026

    @KlausLoeffelmann
    Member

    Wow - @Olina-Zhang - AMAZING find!! Thanks!
    @LeafShi1 - thanks for addressing this!

  4. removed
    untriaged
    on Jul 28, 2026
  5. Olina-Zhang commented on Jul 30, 2026

    @Olina-Zhang
    MemberAuthor

    Tested in the latest .NET 11 RC1 build: 11.0.100-rc.1.26379.102, it was fixed with PropertyGrid's VisualStylesModeChanged event hidden

    Image
  6. added this to the 11.0-rc1 milestone on Jul 30, 2026
  7. Olina-Zhang commented on Aug 27, 2026

    @Olina-Zhang
    MemberAuthor

    Tested in .NET 11 RC1 test pass build: 11.0.100-rc.1.26425.128, it has the same validation result as above.

  8. locked and limited conversation to collaborators on Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

NewApi-Net11

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions