title: Creating a ListView with updating Progress bar for downloads Windows 8 C# XAML
body: <p>I am trying to create a <strong>ListView</strong> that holds a collection of downloads, each with their own progress bar.</p>
  
  <p>The current method I am using is to bind a class that holds the information of currently downloading items, including the current completion percentage of the download:</p>
  
  <p><strong>The item class:</strong></p>
  
  <pre><code>public class DownloadItem
  {
      public double downloadPercent { get; set; }
      public string episodeTitle { get; set; }
      public string podcastFeedTitle { get; set; }
      public DownloadOperation operation { get; set; }
  
      public double percent
      {
          get;
          set;
      }
  }
  </code></pre>
  
  <p><strong>The observableCollection that holds them</strong></p>
  
  <pre><code>public ObservableCollection&lt;DownloadItem&gt; downloadInformationList = new ObservableCollection&lt;DownloadItem&gt;();
  </code></pre>
  
  <p><strong>The method that's called when progress for the item is changed:</strong></p>
  
  <pre><code>private void DownloadProgress(DownloadOperation download)
  {
      double percent = 100;
  
      if (download.Progress.BytesReceived &gt; 0)
      {
          percent = download.Progress.BytesReceived * 100 / download.Progress.TotalBytesToReceive;
          Debug.WriteLine(percent);
      }
  
      foreach (DownloadItem item in downloadInformationList)
      {
          if (item.operation == download)
          {
              item.percent = percent;
          }
      }
  }
  </code></pre>
  
  <p><strong>And the XAML code for the <code>itemTemplate</code> for the ListView:</strong></p>
  
  <pre><code>&lt;DataTemplate&gt;
      &lt;StackPanel&gt;
          &lt;TextBlock Text="{Binding episodeTitle, Mode=TwoWay}" /&gt;
          &lt;ProgressBar IsIndeterminate="False"
                       Value="{Binding percent, Mode=TwoWay}"
                       Maximum="100"
                       Width="200" /&gt;
      &lt;/StackPanel&gt;
  &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>The ProgressBar works and updates, however it ONLY updates upon returning to the page, not in real-time. What am I doing wrong? Any help would be much appreciated!</p>