title: WPF: Mouse left button click and hold down handling
body: <p>How do I repetitively perform an action when the mouse left button is pressed and held down in WPF?</p>
  
  <p>The following event handler for the UIElement.PreviewMouseLeftButtonDown event does not get the job done:</p>
  
  <pre><code>private void BaseButtonRight_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
          {
             // keep performing action while mouse left button is pressed.  
             // Checking e.ButtonState works only for one click
  
          }
  </code></pre>
  
  <p>Execution does not even get into the while loop and handler is called when the left mouse button is released!</p>