title: How to reset progress bar to zero after 'n' number of iterations? WPF
body: <p>I added a progress bar to a WPF application that counts how many times a gesture is performed. But I want the progress bar to reset to zero after 20 iterations. </p>
  
  <p>I tried to achieve this in the below code but when the bar gets to 20 it keeps counting and progress shows full. My question is how do I fix my loop to allow for this?</p>
  
  <pre><code>void matcher_GestureMatch(Gesture gesture)
  {
      scoreProgBar.Maximum = 20;
      lblGestureMatch.Content = gesture.Name;
      if(scoreCntr == 20)
      {
          scoreCntr.Equals(0);
      }
      scoreCntr++;
      scoreProgBar.Value = scoreCntr;
  
      lblScoreCntr.Content = scoreCntr;
  
  } 
  </code></pre>