title: How to fill array of type image with images from a folder c# store app
body: <p>I'm trying to create a game with cards and I want to put them in an array of type <code>Image</code> but the problem is that I want to fill it with 52 .png files from a folder (Assets/Cards). How can I do that? I know I must use Storage Folder but I can't seem to figure it out and I will be glad if someone can help me out. All I have is just an empty array.</p>
  
  <pre><code>void DeckCard()
  {
      Image[] Deck = new Image[52];
      for (int i = 1; i &lt;= Deck.Length; i++)
      {
          Deck[i] = new Image();
          Deck[i].Margin = new Thickness(0, 0, 0, 0);
          LayoutRoot.Children.Add(Deck[i]);
          Deck[i].Height = 200;
          Deck[i].Width = 100;
      }
  }
  </code></pre>