28 references to SystemCommands
PresentationFramework (6)
System\Windows\Shell\WindowChromeWorker.cs (1)
540SystemCommands.ShowSystemMenuPhysicalCoordinates(_window, new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam)));
System\Windows\SystemCommands.cs (5)
21CloseWindowCommand = new RoutedCommand("CloseWindow", typeof(SystemCommands)); 22MaximizeWindowCommand = new RoutedCommand("MaximizeWindow", typeof(SystemCommands)); 23MinimizeWindowCommand = new RoutedCommand("MinimizeWindow", typeof(SystemCommands)); 24RestoreWindowCommand = new RoutedCommand("RestoreWindow", typeof(SystemCommands)); 25ShowSystemMenuCommand = new RoutedCommand("ShowSystemMenu", typeof(SystemCommands));
System.Windows.Controls.Ribbon (22)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (6)
331if (SystemCommands.MaximizeWindowCommand.CanExecute(null, ribbonWindow)) 333SystemCommands.MaximizeWindowCommand.Execute( /*parameter*/ null, /* target*/ ribbonWindow); 336else if (SystemCommands.RestoreWindowCommand.CanExecute(null, ribbonWindow)) 338SystemCommands.RestoreWindowCommand.Execute(/*parameter*/ null, /* target*/ ribbonWindow); 383if (SystemCommands.ShowSystemMenuCommand.CanExecute(null, ribbonWindow)) 385SystemCommands.ShowSystemMenuCommand.Execute( /*parameter*/ null, /* target*/ ribbonWindow);
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (16)
28private static ICommand _minimizeWindowCommand = System.Windows.SystemCommands.MinimizeWindowCommand; 29private static ICommand _maximizeWindowCommand = System.Windows.SystemCommands.MaximizeWindowCommand; 30private static ICommand _restoreWindowCommand = System.Windows.SystemCommands.RestoreWindowCommand; 31private static ICommand _closeWindowCommand = System.Windows.SystemCommands.CloseWindowCommand; 32private static ICommand _showSystemMenuCommand = System.Windows.SystemCommands.ShowSystemMenuCommand; 180SystemCommands.MinimizeWindow(rw); 204SystemCommands.MaximizeWindow(rw); 228SystemCommands.RestoreWindow(rw); 247SystemCommands.CloseWindow(rw); 289SystemCommands.ShowSystemMenu(rw, compositionTarget.TransformFromDevice.Transform(devicePoint)); 326if (SystemCommands.ShowSystemMenuCommand.CanExecute(null, this)) 328SystemCommands.ShowSystemMenuCommand.Execute(null, this); 333if (SystemCommands.CloseWindowCommand.CanExecute(null, this)) 335SystemCommands.CloseWindowCommand.Execute(null, this); 379if (SystemCommands.ShowSystemMenuCommand.CanExecute(e, this)) 381SystemCommands.ShowSystemMenuCommand.Execute(e, this);