private void UpdateWindowLocation() { if (this.dragdropWindow != null) { Win32Interop.POINT p; if (!Win32Interop.GetCursorPos(out p)) { return; } this.dragdropWindow.Left = (double)p.X; this.dragdropWindow.Top = (double)p.Y; } }