Skip to content

ImageCollectionEditor unable to add an image at runtime  #1335

@RussKie

Description

@RussKie
  • .NET Core Version: (e.g. 3.0 Preview1, or daily build number, use dotnet --info)
  • Have you experienced this same bug with .NET Framework?: Yes/No

Problem description:

Having ported ImageCollectionEditor code from NETFx, it appears impossible to add an image at run-time via ImageCollectionEditor.
The error appears in both NET Fx (4.7.2/4.8) and NET Core implementations.

It is however possible to add an image via the editor at design-time.
I've checked the VS implementation and it also appears to be the same as in latest NET Fx.

Relates to #1273

Actual behavior:

  • to a dynamically created ImageList:
    ImageCollectionEditor-net472

  • to an ImageList created at the design time
    ImageCollectionEditor-net472-designer

Expected behavior:

It is possible to add an image at run-time

Minimal repro:

RussKie/Test-ImageCollectionEditor#1

Metadata

Metadata

Assignees

Labels

🪲 bugProduct bug (most likely)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions