Need an alternative solution for the ImageList.ImageStream in the .NET 9 designer. #12310
Labels
area-VSDesigner
Windows Forms out-of-proc designer related issues
📭 waiting-author-feedback
The team requires more information from the author
Environment
VS professional 2022 preview
17.12.0 preview 2.1
.NET version
.NET 9.0
Did this work in a previous version of Visual Studio and/or previous .NET release?
Yes, in the .NET 8.0 version, we are able to see the images in the designer. The ImageList.ImageStream is not supported starting from .NET 9 due to binary formatter serialization. Therefore, we have tried to avoid using ImageStream and added the images directly to the ImageList. In this case, the images load properly at runtime, but we are unable to see the images in the designer of projects targeted for .NET 9.
Issue description
Due to BinaryFormatter not supported in .NET 9 the ImageList.ImageStream will not support in .NET 9. . Therefore, we have tried to avoid using ImageStream and added the images directly to the ImageList. In this case, the images load properly at runtime, but we are unable to see the images in the designer of projects targeted for .NET 9.
Refer the screenshot from below,
ImageList with ImageStream screenshots in .NET 9 designer
**.ImageList with directly added images in .NET 9 designer **
We expected the image should be shown in the designer, but it is not shown properly. Is there any alternative solution we have to achieve this in both runtime and DesignTime
Steps to reproduce
1.Open the sample.
2.And then try to open the designer.
ImageList.zip
Observed Behavior : The Image List images are not shown in the designer.
Expected Behavior : The Image List images should be shown in the designer.
Diagnostics
No response
The text was updated successfully, but these errors were encountered: