title: XAML Image Resource
body: <p>I add some pictures as ressource to my project (for example I put them into the folder "ressources").
  Now I'm using them with:</p>
  
  <pre><code>&lt;Image Name="_ImageName" Width="100" Height="100" Source="Resources\HalloPicA.png"/&gt;
  &lt;Image Name="_ImageName" Width="100" Height="100" Source="Resources\HalloPicB.png"/&gt;
  </code></pre>
  
  <p>... and so one.</p>
  
  <p>Imagine now I will change the folder "Resources" to "MyResources". The Problem I have to change it everywhere in the XAML-code.
  Is there a better way existing? In c#-Code I would declare a member variable from typ string like:</p>
  
  <pre><code>privat _FolderName = "Resources";
  </code></pre>
  
  <p>and use this member variable in this way:</p>
  
  <pre><code>Image newImage = Image.FromFile(_FolderName +"HalloPicA.png");
  </code></pre>
  
  <p>Hopefully my problems are clear.</p>