Content-Length: 301667 | pFad | http://github.com/dotnet/winforms/issues/13355

3D Default CollectionEditor Appears instead of the Custom CollectionEditor When the Editor Opens from the UITypeEditor’s Custom Form · Issue #13355 · dotnet/winforms · GitHub
Skip to content

Default CollectionEditor Appears instead of the Custom CollectionEditor When the Editor Opens from the UITypeEditor’s Custom Form #13355

Open
@SreemonPremkumarMuthukrishnan

Description

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

  1. Open the Designer.
  2. Click the CustomControl and go to the property window.
  3. Now, open the custom form of the "MyCollection" property.
  4. Press the "Add" button.
  5. Open the editor of the "SubItems" property inside the custom form's property grid.

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


Metadata

Metadata

Assignees

Labels

area-VSDesignerWindows Forms out-of-proc designer related issuesuntriagedThe team needs to look at this issue in the next triage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: http://github.com/dotnet/winforms/issues/13355

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy