示例#1
0
 /// <summary>Display the system menu at a specified location.</summary>
 /// <param name="screenLocation">The location to display the system menu, in logical screen coordinates.</param>
 public static void ShowSystemMenu(Window window, Point screenLocation)
 {
     Verify.IsNotNull(window, "window");
     ShowSystemMenuPhysicalCoordinates(window, DpiHelper.LogicalPixelsToDevice(screenLocation));
 }
示例#2
0
        private void _InitializeCaptionHeight()
        {
            Point ptCaption = new Point(0, NativeMethods.GetSystemMetrics(SM.CYCAPTION));

            WindowCaptionHeight = DpiHelper.DevicePixelsToLogical(ptCaption).Y;
        }