Default CollectionEditor Appears instead of the Custom CollectionEditor When the Editor Opens from the UITypeEditor’s Custom Form #13355
Labels
area-VSDesigner
Windows Forms out-of-proc designer related issues
Environment
Microsoft Visual Studio Professional 2022 (64-bit) - Current
Version 17.13.6
.NET version
Facing this issue in both .NET80 and .NET90.
Did this work in a previous version of Visual Studio and/or previous .NET release?
No response
Issue description
A custom CollectionEditor does not appear as expected when invoked from a custom form of a UITypeEditor. Instead, the default CollectionEditor is displayed, which prevents the intended custom editing functionality from being used.
If the CollectionEditor property is directly on the control's class, the custom CollectionEditor appears as expected. However, in our scenario, we are showing this property inside the property grid within the custom form of the UITypeEditor.
We would appreciate any guidance or suggestions on resolving this issue to display the custom CollectionEditor.
In the sample, the MyCollection property is bound with the UITypeEditor, which shows a custom form, and the SubItems property is bound with the Custom CollectionEditor.
Demo link:
CustomControlLibrary_WithSample.zip
NuGet is included in the above file.
Issue replication video:
CollectionEditor_Output.mp4
Steps to reproduce
Expected Behavior - The custom Collection Editor should be shown.
Observed Behavior - The default Collection Editor was shown.
Note: The same "SubItems" property is directly available on the custom control, and it displays the custom CollectionEditor properly.
Diagnostics
The text was updated successfully, but these errors were encountered: