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
PropertyGrid exposes VisualStylesModeChanged event although VisualStylesMode is hidden #14803
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.
Steps to reproduce
Create a WinForms (.NET 11) project.
Add a PropertyGrid control to the Form.
Select the PropertyGrid in the Designer.
Verify that the VisualStylesMode property is not shown in the Properties window.
Activity
KlausLoeffelmann commentedon Jul 27, 2026
Wow - @Olina-Zhang - AMAZING find!! Thanks!
@LeafShi1 - thanks for addressing this!
Olina-Zhang commentedon Jul 30, 2026
Tested in the latest .NET 11 RC1 build: 11.0.100-rc.1.26379.102, it was fixed with PropertyGrid's VisualStylesModeChanged event hidden
Olina-Zhang commentedon Aug 27, 2026
Tested in .NET 11 RC1 test pass build: 11.0.100-rc.1.26425.128, it has the same validation result as above.