private IntPtr _HandleNCRButtonUp(WM uMsg, IntPtr wParam, IntPtr lParam, out bool handled) { if (2 == wParam.ToInt32()) { SystemCommands.ShowSystemMenuPhysicalCoordinates(this._window, new Point((double)Utility.GET_X_LPARAM(lParam), (double)Utility.GET_Y_LPARAM(lParam))); } handled = false; return(IntPtr.Zero); }
public static void ShowSystemMenu(Window window, Point screenLocation) { Verify.IsNotNull <Window>(window, "window"); SystemCommands.ShowSystemMenuPhysicalCoordinates(window, DpiHelper.LogicalPixelsToDevice(screenLocation)); }