I have a windows forms window application. Inside the application we want to open a WPF window that is positioned at a location relative to the mouse position. Let's say, that the window center may be displayed at the mouse coordinates, or another case, that the top left corner of the window may be set as being the mouse coordinates.
I've looked at posts like http://www.formatexception.com/2008/09/wpf-and-mouseposition/ but this does not help me, as I don't have a WPF control open before my window. I only have the windows forms, so the folllowing line is not usable in my case
Point mousePoint = Mouse.GetPosition(this);