title: How to refresh a GridView content?
body: <p>I have a <code>GridView</code> in my app that basically contains images as following:</p>
  
  <pre><code>&lt;GridView x:Name="ImageGridView"&gt;
      &lt;Image x:Name="Image_1"/&gt;
      &lt;Image x:Name="Image_2"/&gt;
      &lt;Image x:Name="Image_3"/&gt;
  &lt;/GridView&gt;
  </code></pre>
  
  <p>with this in codebehind for the images to Load:</p>
  
  <pre><code>public void SetImages()
  {
    StorageFolder localFolder = Windows.Storage.ApplicationData.Current.LocalFolder;
    Image_1.Source= new BitmapImage(new Uri(localFolder.Path + "/Image_1.png"));
    Image_1.Source= new BitmapImage(new Uri(localFolder.Path + "/Image_2.png"));
    Image_1.Source= new BitmapImage(new Uri(localFolder.Path + "/Image_3.png"));
  }
  </code></pre>
  
  <p>The GridView shows the images just fine. However, I also have a Class that changes the colors of those Pictures based on existing values as fallowing:</p>
  
  <p><a href="https://i.stack.imgur.com/nSJiX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nSJiX.png" alt="Changing the Images Colors"></a></p>
  
  <p>This means that the Images sources don't change, and the paths to those images also remain as it is. The only thing changing are the colors in those images as demonstrated in the pictures.</p>
  
  <p>However, when the colors-changing task is finished and the images are updated in the App's LocalState folder, they are not updated in the GridView images.</p>
  
  <p><a href="https://i.stack.imgur.com/A34hQ.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A34hQ.gif" alt="Ithe Images are not updated in the UI"></a></p>
  
  <p>I have also tried creating an observable collection with the images in question. Binded the GridView to this collection, and at each color update I would include this:</p>
  
  <pre><code>GridView.ItemsSource = null;
  GridView.ItemsSource = ImagesCollection;
  </code></pre>
  
  <p>It would work by changing some Images but not others. this happens randomly. If there it a way to await the first before executing the second, this might work out!</p>
  
  <p><strong>The question is: how to I ask the GridView to reload its content? Update its content? clear cache and re-fetch the Images?</strong> </p>