title: Can anyone explain me how to add Image using WPF?
body: <p>I already did this:</p>
  
  <pre>
  <code>
  var uriSource = new Uri(@"/WpfApplication1;component/Untitled.png", UriKind.Relative);
  image1.Source = new BitmapImage(uriSource);
  </code>
  </pre>
  
  <p>My namespace is WpfApplication1, my image is at main folder of the project.
  It still doesn't work. What am I doing wrong?
  It's already set to Resource. When I debug, it says these erros:
  Height = 'image.Source.Height' threw an exception of type 'System.IO.DirectoryNotFoundException'
  Metadata = '(image.Source).Metadata' threw an exception of type 'System.NotSupportedException'</p>