示例#1
0
 public static void ShowSystemMenu(Window window, Point screenLocation)
 {
     Verify.IsNotNull <Window>(window, "window");
     SystemCommands.ShowSystemMenuPhysicalCoordinates(window, DpiHelper.LogicalPixelsToDevice(screenLocation));
 }
示例#2
0
 public static void MinimizeWindow(Window window)
 {
     Verify.IsNotNull <Window>(window, "window");
     SystemCommands._PostSystemCommand(window, SC.MINIMIZE);
 }
示例#3
0
 public static void RestoreWindow(Window window)
 {
     Verify.IsNotNull <Window>(window, "window");
     SystemCommands._PostSystemCommand(window, SC.RESTORE);
 }
示例#4
0
 public static void CloseWindow(Window window)
 {
     Verify.IsNotNull <Window>(window, "window");
     SystemCommands._PostSystemCommand(window, SC.CLOSE);
 }