private Win32Rect GetWindowRectangle() { Win32Rect rect; GetWindowRect(new WindowInteropHelper(this).Handle, out rect); return rect; }