title: Embedded Binary Resources - how can I enumerate the image files embedded?
body: <p>I was following the instructions in <a href="http://www.apress.com/book/view/9781430225492" rel="nofollow">this book</a>, chapter on Resources etc. and what I can't quite figure out is, how do I replace this:</p>
  
  <pre><code>images.Add(new BitmapImage(new Uri(@"/Images/Deer.jpg", UriKind.Relative)));
  images.Add(new BitmapImage(new Uri(@"/Images/Dogs.jpg", UriKind.Relative)));
  images.Add(new BitmapImage(new Uri(@"/Images/Welcome.jpg", UriKind.Relative)));
  </code></pre>
  
  <p>by a loop that would simply run through all embedded image resources to avoid hard-coding the image names and paths. How would I go about discovering the names of the embedded files?</p>
  
  <p>I did select the images I wanted to embed and specified:</p>
  
  <p>Build Action=Resource and Copy to Output Directory=Do not copy</p>
  
  <p>in the Properties window. The assembly has grown considerably in size and I am quite convinced the images have indeed been embedded.</p>