title: CF - How to get mouse position when ContextMenu pops up?
body: <p>I have a problem i cannot solve.</p>
  
  <p>In my view (that shows a map) i created a contextMenu.
  When context menu is invoked i need to get the position where the user has clicked on the map.</p>
  
  <p>Here is my problem:</p>
  
  <p>In the view i already have onMouseDown event that gets me the coordinates where the user clicked.</p>
  
  <pre><code>private void MapView_MouseDown(object sender, MouseEventArgs e)
      {
          this.lastMouseDownX = e.X;
          this.lastMouseDownY = e.Y;
      }
  </code></pre>
  
  <p>When the contextMenu is invoked i need the same data, but the problem is that contextMenu only has EventArgs that dont keep the data i need. Furthermore ... contextMenu is invoked when user presses and holds mouse for a second and when its invoked the code does not enter onMouseDown event ! It just goes into popup event on my context menu....</p>
  
  <p>I tried putting this in my popup event, but the coordinates are not ok. Y coordinate is way off the chart.</p>
  
  <pre><code>private void servicesContextMenu_Popup(object sender, EventArgs e)
  {
      this.lastMouseDownX = Control.MousePosition.X;
      this.lastMouseDownX = Control.MousePosition.Y;
  }
  </code></pre>
  
  <p>Help?</p>