Skip to content

PropertyGrid's SelectedTab no longer changes when the SelectedObject is assigned #14422

@chirndlerks

Description

@chirndlerks

.NET version

10.0.201

Did it work in .NET Framework?

Not tested/verified

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

Yes, 8.0.415

Issue description

We have migrated from .NET 8 to .NET 10.
I have noticed that the PropertyGrid in our DesignSurface implementation no longer displayed our custom PropertyDescriptors.
The difference is the commit 8b346b0
The null check in the SelectViewTabButtonDefault method causes the regression.

Steps to reproduce

See https://github.com/chirndlerks/PropertyGridSelectedTabRegression

In .NET 8.0, the SelectedTab changes on line https://github.com/chirndlerks/PropertyGridSelectedTabRegression/blob/6d3c9243f46619ada7a18b89c5edd298a150ea02/Form1.cs#L62, but not in .NET 10.0

If you uncomment the call to the WorkaroundForDotNet10 method, it will also work under .NET 10

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions