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 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? 🙂
Please login first to submit.