title: How to reset a DispatcherTimer?
body: <p>Those are my declarations and methods of DispatcherTimer:        </p>
  
  <pre><code>private DispatcherTimer DishTimer;
  private TimeSpan SpanTime;
  private void InitTimer()
  {
  
      DishTimer = new DispatcherTimer();
      DishTimer.Interval = new TimeSpan(0, 0, 0, 1);
      DishTimer.Tick += TimerOnTick;
  
  }
  private void TimerOnTick(object sender, object o)
  {
      SpanTime = SpanTime.Add(DishTimer.Interval);
      Duration.DataContext = SpanTime;
  }        
  </code></pre>
  
  <p>This is where i call it:</p>
  
  <pre><code>private void CaptureButton_Click(object sender, RoutedEventArgs e)
  {
      if ((string) CaptureButton.Content == "Capture")
      {
  
          CaptureAudio();
          InitTimer();
          DishTimer.Start();
  
          ProgressRing.IsActive = true;
          CaptureButton.Content = "Stop";
      }
      else
      {
          StopCapture();
          DishTimer.Stop();
          ProgressRing.IsActive = false;
          CaptureButton.Content = "Capture";
      }
  
  }
  </code></pre>
  
  <p>and here is my xaml code for showing the timer:</p>
  
  <pre><code>&lt;TextBlock Name="Duration" Text="{Binding}"  HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="24"&gt;&lt;/TextBlock&gt;
  </code></pre>
  
  <p>I am making a voice recording app and i want everytime the user press capture to show a timer. My problem here is that i can't reset it</p>