Sunrise

Sunrise
Sunrise

Wednesday, June 6, 2007

Referencing an image from another project in xaml

I recently had an issue where I had a usercontrol that was packaged in a project together with an image that it referenced. Another project used the usercontrol and it wasn't displaying the image. After fiddling with the image source, changing it to a pack URI and a few different things I found that it had nothing to do with the source property. The answer was to go to the properties of the image and change the Build Action to Resource instead of Content.
There you go.

No comments: