title: wpf canvas double click
body: <p>I am trying to fetch a double click from the user on a canvas. I am using the previewmousedown event for this, but it isn't working properly.</p>
  
  <p>The function is as following:</p>
  
  <pre><code>    void DrawCanvas_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
      {
  
          /* Check if it is a double click */
          if(e.ChangedButton == MouseButton.Left &amp;&amp; e.ClickCount == 2)
          {
             //do double click actions
          }
          else
          {
             //do single click actions
          }
          e.Handled = true;
      }
  </code></pre>
  
  <p>I have tried to move it to the previewmouseup function as well, but the clickcount stays on 1.</p>
  
  <p>Anyone an idea why the clickcount doesn't go up?</p>