title: Uri for bitmap in subfolder (c# wpf)
body: <p>I have a wpf app where I'm using an image.  To reference the image I use:</p>
  
  <pre><code>Uri uri = new Uri("pack://application:,,,/assemblyName;Component/myIcon.png");
  BitmapImage(uri)
  </code></pre>
  
  <p>If I add the png directly under the csproj file (with its properties BuildAction=Resource) then it works fine.</p>
  
  <p>But I want to move it to a subfolder under the csproj.  Another SO question asked about bitmaps\uri's (<a href="https://stackoverflow.com/questions/857732/how-can-i-get-a-bitmapimage-from-a-resource">857732</a>) and an answer linked to this <a href="http://msdn.microsoft.com/en-us/library/aa970069.aspx#Resource_File_Pack_URIs___Local_Assembly" rel="nofollow noreferrer">msdn</a>.  So I tried :</p>
  
  <pre><code>Uri uri = new Uri("pack://application:,,,/assemblyName;Component/Icons/myIcon.png");
  </code></pre>
  
  <p>But that did not work.</p>
  
  <p>Any ideas?</p>