Skip to content

ImageCollectionEditor unable to add an image at runtime  #1335

Closed

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

Activity

  1. added
    🪲 bug
    on Jul 11, 2019
  2. added this to the 3.0.0-Preview8 milestone on Jul 11, 2019
  3. self-assigned this
    on Jul 11, 2019
  4. RussKie commented on Jul 11, 2019

    @RussKie
    ContributorAuthor

    @merriemcgaw @dreddy-work

    @Olina-Zhang could you please check whether this ever worked in NET Fx?

  5. Olina-Zhang commented on Jul 11, 2019

    @Olina-Zhang
    Member

    @RussKie I checked all .Net frameworks, behaviors are same, at VS design time, it can add image successfully, and in PropertyGrid runtime, there is an error existed when adding image in ImageCollectionEditor:
    image

  6. RussKie commented on Jul 11, 2019

    @RussKie
    ContributorAuthor

    Thank you, @Olina-Zhang.

    It will be fixed in Core. @merriemcgaw what's our appetite getting it fixed in NETFx?

  7. merriemcgaw commented on Jul 11, 2019

    @merriemcgaw
    Contributor

    If we have a customer requesting the fix we likely would, but really not until then.

  8. ghost locked as resolved and limited conversation to collaborators on Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🪲 bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions