title: Uri for Images Folder in WPF Applications
body: <p>My project looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/6AWwx.png" alt="enter image description here"></p>
  
  <p>Ideally I would like to have all my images in the 'Images' folder, however at the moment, I have a bunch of images in Visual Studio 2013\Projects\TestProject\TestProject\bin\Debug\Images. I had to do this because as I was trying to find a way to change the source of a ImageBrush in code, I ended up doing this:</p>
  
  <pre><code>imagebrush.ImageSource = new BitmapImage(new Uri("Images/testimage.png", UriKind.Relative));
  </code></pre>
  
  <p>As much as I tried, I just couldn't find a way to point the Uri towards the Images folder in my first picture. Instead, I noticed the above code points towards the Debug folder of my project, hence why I ended up creating another 'Images' folder inside of there. In fact, I even found some tutorials that specifically say to do this when you want to change image sources in code.</p>
  
  <p>This seems wrong however... Especially now that I essentially have two different Image folders. Can someone please explain to me how I can get my code to point towards the Images folder in my picture?</p>