.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.
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.
- Switch to the Events view to observe.
.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
PropertyGridhides theVisualStylesModeproperty, but the correspondingVisualStylesModeChangedevent is still exposed in the Events window.Since
PropertyGridexplicitly hidesVisualStylesMode (Browsable(false))and always reportsVisualStylesMode.Classic,exposing theVisualStylesModeChangedevent is inconsistent and may confuse developers.Steps to reproduce
PropertyGridcontrol to the Form.PropertyGridin the Designer.