tags:

views:

30

answers:

1

I'm doing this:

<Image Grid.Column="0" Grid.Row="0" x:Name="Andromeda" Source="/Resources/64px-Andromedahero.gif" />

But it's just not working. :S

Here's a screenshot of the file/folder heirarchy. Any help?

alt text

+1  A: 

A couple of potential options:

  1. Make sure that your resources are set to be compiled as embedded resources.
  2. If this is a control library, and you're using this from a separate application, you may need to use a Pack URI.

Edit:

If it's a control library, you'll want to use:

Source="pack://application:,,,/MyControlLibraryAssembly;component/Resources/64px-Andromedahero.gif"
Reed Copsey
Changed all pictures to Embedded Resource, and STILL it refuses to work. Why is it so dificult to just put a picture onto an image. :D Please help! I'm using this and it still isn't working: Source="/Resources/64px-Andromedahero.gif"
Sergio Tapia
If this is a control library, you need to setup a pack URI. I'll edit to explain.
Reed Copsey