ImageSourceEditor Doesn't Show PNG and GIF in DLL

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!


I was trying to create a package for PNG files the way you did with several IconPack you provided in Extensions page. They are located in 4 folders  and put them under Resources and set them as Embedded Resource. And for testing purposes, I included 1 SVG and 1 gif files in one of the folders. I then referenced the resulting DLL in my project.

However, when I opened the ImageResourceEditor to pick an image for a button, it only showed the SVG file. (see image # 01). I then tried to access it at runtime using code like:

button1.ImageSource = "resource.wx/STBS.IconPack/<folder name>/cashflow.png";, but no image was added to button1.

I have to remove the <folder name> to make it work.
button1.ImageSource = "resource.wx/STBS.IconPack/cashflow.png";

Is it a restriction or I am just missing something.

  • You must to post comments

You are not missing anything, this is the constant with the image types:

private const string IMAGE_TYPES = “.svg|,png|.gif|.jpg|.jpeg”;

Spot the bug? 🙂

  • Cris
    • Cris
    • Feb 7, 2017 - 6:49 pm
    Hi Luca, Are you saying it’s a bug or you are asking me a question? Thanks.
  • Luca (ITG)
    Logged as WJ-8007.
  • Luca (ITG)
    It’s a bug, I was kidding because the comma in front of png is a bad bug.
  • Cris
    • Cris
    • Feb 7, 2017 - 7:07 pm
    Didn’t notice that comma. Thanks.
  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json mixin.theme