Skip to content

How to fix the title of the Collection Editor for the custom control in NET Core? #14049

@BhaskarSuresh22

Description

@BhaskarSuresh22

Environment

Visual Studio Professional 2022 - version 17.14.19

.NET version

.NET 8.0

Did this work in a previous version of Visual Studio and/or previous .NET release?

No

Issue description

When using the default CollectionEditor for a property that is a collection of System.Windows.Forms.Control-derived types, the editor window's title is displayed incorrectly. Instead of showing a title based on the collection's item type (e.g., "MyChildControl Collection Editor"), it displays the internal proxy type name: "ControlProxy`1 Collection Editor".

Image

Sample - CustomControl_Sample.zip

Steps to reproduce

  • Open the sample.
  • Add the child items for the MyParentControl using the ChildItems property.
  • Notice the Collection Editor's title is "ControlProxy`1 CollectionEditor" instead of "MyChildControl CollectionEditor".

Diagnostics


Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions