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
How to fix the title of the Collection Editor for the custom control in NET Core? #14049
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".
The same problem also affects non-control items: the fix in #14375 only unwraps ControlProxy<T>, but plain objects and structs show ObjectProxy1 and StructProxy1 in the Collection Editor caption.
Environment
Visual Studio 18.0
.NET 10 (works correctly in .NET Framework 4.8)
Scenario
A collection item (edited via a custom server-side CollectionEditor) has a nested property that is an array, edited with the default Collection Editor:
Array of structs: caption is StructProxy1 Collection Editor. In addition, clicking Add fails with InvalidArgument=Value of '-1' is not valid for 'index'. Parameter name: index
(the new item is never created, so the list box selects index -1).
After replacing the array element type with a class (via a custom PropertyDescriptor), Add works, but the caption is ObjectProxy1 Collection Editor.
Expected behavior
Caption shows the real item type name (MyPoint Collection Editor), and Add works for struct items, as in .NET Framework 4.8.
Screenshots
.NET Framework 4.8
.NET 10
Suggestion
Could the caption fix in #14375 unwrap any generic proxy type (ObjectProxy<T>, StructProxy<T>, ControlProxy<T>) to its underlying type rather than only ControlProxy<T>?
Activity
LeafShi1 commentedon May 15, 2026
This should be fixed in winforms-designer repo, duplicate with https://github.com/microsoft/winforms-designer/issues/3700
ViktoriiaUran commentedon Oct 14, 2026
The same problem also affects non-control items: the fix in #14375 only unwraps
ControlProxy<T>, but plain objects and structs showObjectProxy1andStructProxy1in the Collection Editor caption.Environment
Scenario
A collection item (edited via a custom server-side
CollectionEditor) has a nested property that is an array, edited with the default Collection Editor:Actual behavior
StructProxy1 Collection Editor. In addition, clicking Add fails withInvalidArgument=Value of '-1' is not valid for 'index'. Parameter name: index(the new item is never created, so the list box selects index -1).
PropertyDescriptor), Add works, but the caption isObjectProxy1 Collection Editor.Expected behavior
Caption shows the real item type name (
MyPoint Collection Editor), and Add works for struct items, as in .NET Framework 4.8.Screenshots

.NET Framework 4.8
.NET 10

Suggestion
Could the caption fix in #14375 unwrap any generic proxy type (
ObjectProxy<T>,StructProxy<T>,ControlProxy<T>) to its underlying type rather than onlyControlProxy<T>?