title: Assign BitmapImage from Resources.resx to Image.Source?
body: <p>I would like to assign a <code>BitmapImage</code> from my Resources.resx to an <code>Image</code>.
  Beforehand I saved a .png image to Resources.resx. This image is now located in "/Resources/logo.png".</p>
  
  <p>After reading several SO posts and other articles I have this now:</p>
  
  <pre><code>logoImage.Source = new BitmapImage(new Uri(@"pack://application:,,,/Resources/logo.png"));
  </code></pre>
  
  <p>Unfortunately it doesn't work.
  I don't know how to solve this.</p>
  
  <p>I tried to replace the <code>Pack-URI</code> with the fullpath and it worked but I would like to use relative paths in order to use the same source on different machines on which the absolute path would be incorrect.</p>
  
  <p>Can anyone help me out with this?</p>