ImageSources not working in my project

Ribbon for WPF Forum

Posted 17 years ago by Bryan Livingston
Version: 1.0.0340
I have a bit of a strange setup. I've got my image resources and most my code in a dll, which is used by two executable projects, one for windows and the other for xbap.

To get the image references to work in the xaml code I had to remove the first forward slashes making them relative. So ImageSourceLarge="Images/New32.png" rather than ImageSourceLarge="/Images/New32.png".

Now I'm tring to use the RibbonCommand sytem and the images just arn't working. Is there something in the controls that expects the images to be in the executable assembly?



Comments (1)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Bryan,

No you can load images from any assembly. The path syntax can be confusing though. There was a post in the MSDN on it which was pretty good. We should find that and add it to our site.

Anyhow, note that the Window in our ribbon sample uses an icon from our Shared library. So this is similar to what you are doing. Here is the syntax for that:
ActiproSoftware.Shared.WPF30 is the assembly that contains the icon. Using this syntax should get it working for you.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.