title: Hide WP7 progress bar when the image is loaded
body: <p>I'm using a progress bar for loading an image in an application for Windows Phone 7.</p>
  
  <pre><code>bitmapImage.DownloadProgress += new EventHandler&lt;DownloadProgressEventArgs (bitmapImage_DownloadProgress);
  
  void bitmapImage_DownloadProgress(object sender, DownloadProgressEventArgs e)
  {
     progressBar.Value = e.Progress;
  }
  </code></pre>
  
  <p>XAML file:</p>
  
  <pre><code>&lt;ProgressBar x:Name="progressBar" IsIndeterminate="True" Width="300" Height="30" Style="{StaticResource PerformanceProgressBar}" /&gt;
  </code></pre>
  
  <p>I'd like to know the best way to make the progress bar disappear once the image is loaded.</p>