Пример #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);
 }