title: Upload multiple files with wpf progress bars
body: <p>i´am looking for a solution in C# and WPF.
  I try to upload multiple files to a server. Every upload should be shown in the listbox within a progressbar.</p>
  
  <p>I have a WPF listbox template with a progress bar and a textblock in it:</p>
  
  <pre><code>&lt;ListBox Name="lbUploadList" HorizontalContentAlignment="Stretch" Margin="530,201.4,14.2,33.6" Grid.Row="1"&gt;
      &lt;ListBox.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;Grid Margin="0,2"&gt;
                  &lt;Grid.ColumnDefinitions&gt;
                      &lt;ColumnDefinition Width="*" /&gt;
                      &lt;ColumnDefinition Width="100" /&gt;
                  &lt;/Grid.ColumnDefinitions&gt;
                  &lt;TextBlock Text="{Binding File}" /&gt;
                  &lt;ProgressBar Grid.Column="1" Minimum="0" Maximum="100" Value="{Binding Percent}" /&gt;
              &lt;/Grid&gt;
          &lt;/DataTemplate&gt;
      &lt;/ListBox.ItemTemplate&gt;
  &lt;/ListBox&gt;
  
  
  public class UploadProgress
  {
      public string File { get; set; }
      public int Percent { get; set; }
  }
  
  List&lt;UploadProgress&gt; uploads = new List&lt;UploadProgress&gt;();
  uploads.Add(new UploadProgress() { File = "File.exe", Percent = 13 });
  uploads.Add(new UploadProgress() { File = "test2.txt", Percent = 0 });
  lbUploadList.ItemsSource = uploads;
  </code></pre>
  
  <p>How can i update a progress bar in this list? </p>
  
  <p>Can somebody help me to find the correct solution? :)</p>