static SystemCommands() { MinimizeWindowCommand = new SystemCommand(CanMinimize, Minimize); MaximizeWindowCommand = new SystemCommand(CanMaximize, Maximize); RestoreWindowCommand = new SystemCommand(CanRestore, Restore); CloseWindowCommand = new SystemCommand(CanClose, Close); ShowSystemMenuCommand = new SystemCommand(CanShowSystemMenu, ShowSystemMenu); }