title: windows wpf iteratively load Resource files
body: <p>I am working on a WPF application where I want to display a list of icons that I have embedded as png Images into the Resources folder of my project.<br/> The images' build action is 'resource', and they are located as follows:</p>
  
  <pre><code>'NameOfProject'/Resources/Icons/'SomeCategories'/'AllTheIcons'.png
  </code></pre>
  
  <p>Since there are about a thousand I would like to load them into the listview via a foreach-statement like so:</p>
  
  <pre><code>foreach (imageorwhatever icon in Resources/Icons/Category1) { ... }
  foreach (imageorwhatever icon in Resources/Icons/Category2) { ... }
  etc.
  </code></pre>
  
  <p>I haven't found a way so far on how I can achieve this. All solutions I have found target every resource individually, or load them from file.</p>
  
  <p>I would prefer loading the images iteratively because I really don't want to define 1000 images in code or xaml</p>