C# Class ControlzEx.Microsoft.Windows.Shell.SystemCommands

Show file Open project: ControlzEx/ControlzEx

Public Methods

Method Description
CloseWindow ( Window window ) : void
MaximizeWindow ( Window window ) : void
MinimizeWindow ( Window window ) : void
RestoreWindow ( Window window ) : void
ShowSystemMenu ( Window window, Point screenLocation ) : void

Display the system menu at a specified location.

Private Methods

Method Description
ShowSystemMenuPhysicalCoordinates ( Window window, Point physicalScreenLocation ) : void
SystemCommands ( ) : System
_PostSystemCommand ( Window window, SC command ) : void

Method Details

CloseWindow() public static method

public static CloseWindow ( Window window ) : void
window System.Windows.Window
return void

MaximizeWindow() public static method

public static MaximizeWindow ( Window window ) : void
window System.Windows.Window
return void

MinimizeWindow() public static method

public static MinimizeWindow ( Window window ) : void
window System.Windows.Window
return void

RestoreWindow() public static method

public static RestoreWindow ( Window window ) : void
window System.Windows.Window
return void

ShowSystemMenu() public static method

Display the system menu at a specified location.
public static ShowSystemMenu ( Window window, Point screenLocation ) : void
window System.Windows.Window The MetroWindow
screenLocation Point The location to display the system menu, in logical screen coordinates.
return void