ImageSourceEditor Doesn't Show PNG and GIF in DLL

0
0

Hi,

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.

Thanks
  • You must to post comments
0
0

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

Please first to submit.