title: DispatcherTimer tick once
body: <p>I basically want a dispatcher timer object to only execute once. </p>
  
  <p>So I have the basic code:</p>
  
  <pre><code>DispatcherTimer dispatcherTimer = new DispatcherTimer();
  dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
  dispatcherTimer.Interval = new TimeSpan(0, 0, 4);
  dispatcherTimer.Start();
  </code></pre>
  
  <p>Then inside the click event:</p>
  
  <pre><code>private void dispatcherTimer_Tick(object sender, EventArgs e)
          {
              this.Visibility = System.Windows.Visibility.Visible;
              // Now stop timer execution.. or kill the timer object
          }
  </code></pre>
  
  <p>How can I stop the timer or kill off the object after this execution?</p>