title: Progress Bar in Windows Phone 8 App
body: <p>I want to add a progress bar to my application when certain data is being processed. </p>
  
  <p>In XAML:</p>
  
  <pre><code>ProgressBar x:Name="progressBar1"  Value="{Binding progressPercent}" Maximum="100" Margin="10,209,10,63" Grid.Row="5" RenderTransformOrigin="0.5,0.5"&gt;
  </code></pre>
  
  <p>In C#:</p>
  
  <pre><code>private void Button_Click_1(object sender, RoutedEventArgs e)
  {
      IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication();
      progressBar1.IsIndeterminate = true;    
  
      progressBar1.Value = progressPercent;
  
      for(int i=0;i&lt;5;i++)
      {
          if(count[i] == 1)
          {
              t=1;
              break;
          }
      } // and the code continues
  </code></pre>
  
  <p>But the <code>IsDeterminate</code> property does not become true when I used a breakpoint to check it.
  Could anyone tell me what's the issue?</p>