Can find images at design time, can't find images at run time.

I have a complex application with a main app and up to 80 'satellite' libraries.

The main app loads Pages defined in the satellite libraries. The satellite libraries also contain the images displayed on a toolbar.

Design time the images are visible on the buttons.

At runtime the application throws an error that it can't find the images.


Included is a small sample app to demonstrate this.



Attachment: WpfMain_with_Satelite_Library_c8c5acec.zip

3 Replies

BS Bhaskar Suresh Syncfusion Team May 7, 2025 06:53 AM UTC

Hi Johan Visser,


We have resolved the exception issue in the sample by defining the images in the ResourceDictionary as BitmapImage resources and were then accessed in the ButtonAdv controls. Please refer to the attached sample and let us know if you have any concerns.


Regards,

Bhaskar Suresh


Attachment: WpfMain_with_Satelite_Library_46cb08f5.zip


JV Johan Visser May 7, 2025 09:02 AM UTC

Works like a charm, thank you so much



BS Bhaskar Suresh Syncfusion Team May 7, 2025 12:55 PM UTC

Hi Johan Visser,


We are glad that the reported issue has been resolved. Hence, we are marking this forum as closed.

Please get in touch with us if you require any further assistance.


Regards,

Bhaskar Suresh


Loader.
Up arrow icon