title: WPF Trying to add remote images to a listview but only the last one shows up
body: <p>I am trying to load remote images in a listview, but only the last image shows up in the list, the rest don't. Here is the code, I have removed some parts of the code at the top. Note that the code compiles ok, just that the remote images don't load(except for the last one in the UI). Any help would be cool!</p>
  
  <pre><code>    public async void button_Click(object sender, RoutedEventArgs e)
      {
          if (youtube_ids.Count &gt; 0)
          {
              DownloadLinks.Visibility = Visibility.Visible;
              foreach (var youtube_id in youtube_ids)
              {
  
                  var grid = new Grid();
                  grid.Width = 400;
                  grid.Height = 50;
  
  
  
                  // image thumbnail
                  var thumb = new Image();
  
                  thumb.Width = 50;
                  thumb.MaxHeight = 50;
                  thumb.Margin = new System.Windows.Thickness { Left = 10 };
  
  
                  var thumb_file = new BitmapImage(new Uri($"http://img.youtube.com/vi/{youtube_id}/0.jpg", UriKind.Absolute));
                  thumb.VerticalAlignment = System.Windows.VerticalAlignment.Center;
                  thumb.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
                  thumb_file.DownloadCompleted += (ob, ev) =&gt;
                  {
                      thumb.Source = thumb_file;
  
  
  
                  };
                  grid.Children.Add(thumb);
                  DownloadLinks.Items.Add(grid);
  
              }
          }
      }
  </code></pre>
  
  <p>There is also a button which I add next to the thumbnail, which shows up fine. Here's a screenshot of what its looking like now
  <a href="https://i.stack.imgur.com/XLIVs.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XLIVs.jpg" alt="screenshot"></a></p>