title: How can I handle the mouse wheel click event in WPF?
body: <p>I want to close a tab in my tab control when the mouse wheel is clicked.  How can I capture this event in WPF?</p>
  
  <p>EDIT:
  Here's the code:</p>
  
  <pre><code>private void tabMain_MouseDown(object sender, MouseButtonEventArgs e)
      {
          if(e.ChangedButton == MouseButton.Middle &amp;&amp; e.ButtonState == MouseButtonState.Pressed)
          {
              MessageBox.Show("Middle button clicked");
          }
      }
  </code></pre>