I would like to open a WPF window on top of a model at cursor position, e.g. ondoubleclick.
How do i get the correct position. I´ve tried this:
private static extern bool GetCursorPos(ref Point lpPoint);
When i set the postion of the WPF window to these coordinates, it is relative to the cursor, but half a screen away from the cursor. I can though get the cursor position relative to the Modelwindow, but this won´t me help either, because i need the absolute