title: WPF Mouse down event no Coordinates
body: <p>I am using WPF mouse down event on a control. I want to get the X,Y coordinates but I am getting an error:</p>
  
  <pre><code>private void button_MouseDown(object sender, MouseButtonEventArgs e)
  {
        double x = e.X, double y = e.Y;
  }
  </code></pre>
  
  <p>I could not access the coordinates. I wonder why. Can Someone help? If mouse down is unable to get the coordinates, is there other way I can get the coordinate of the cursor when click?</p>