title: Loading images in WPF from code
body: <p>I must have read tons of solutions online, but for some idiotic reason I can not get them to work.</p>
  
  <p>I have a .jpg image in the Resources folder of my project, and the image is set to Build Action: Resource (not embedded resource) and never copy to output folder.
  My image is <em>not</em> added to my resources.resx file.</p>
  
  <p>I am trying to access the file like so:</p>
  
  <pre><code>lResult = new BitmapImage(new Uri(@"pack://application:,,,/Resources/ImageMissing.jpg", UriKind.Absolute));
  </code></pre>
  
  <p>But this fails saying that there is no image there.</p>
  
  <p>This is so basic I feel really stupid, but I just cannot seem to grasp the simple concept of resources usage.</p>
  
  <p>Thank you.</p>