28 references to SystemCommands
PresentationFramework (6)
System\Windows\Shell\WindowChromeWorker.cs (1)
541SystemCommands.ShowSystemMenuPhysicalCoordinates(_window, new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam)));
System\Windows\SystemCommands.cs (5)
22CloseWindowCommand = new RoutedCommand("CloseWindow", typeof(SystemCommands)); 23MaximizeWindowCommand = new RoutedCommand("MaximizeWindow", typeof(SystemCommands)); 24MinimizeWindowCommand = new RoutedCommand("MinimizeWindow", typeof(SystemCommands)); 25RestoreWindowCommand = new RoutedCommand("RestoreWindow", typeof(SystemCommands)); 26ShowSystemMenuCommand = new RoutedCommand("ShowSystemMenu", typeof(SystemCommands));
System.Windows.Controls.Ribbon (22)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (6)
332if (SystemCommands.MaximizeWindowCommand.CanExecute(null, ribbonWindow)) 334SystemCommands.MaximizeWindowCommand.Execute( /*parameter*/ null, /* target*/ ribbonWindow); 337else if (SystemCommands.RestoreWindowCommand.CanExecute(null, ribbonWindow)) 339SystemCommands.RestoreWindowCommand.Execute(/*parameter*/ null, /* target*/ ribbonWindow); 384if (SystemCommands.ShowSystemMenuCommand.CanExecute(null, ribbonWindow)) 386SystemCommands.ShowSystemMenuCommand.Execute( /*parameter*/ null, /* target*/ ribbonWindow);
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (16)
29private static ICommand _minimizeWindowCommand = System.Windows.SystemCommands.MinimizeWindowCommand; 30private static ICommand _maximizeWindowCommand = System.Windows.SystemCommands.MaximizeWindowCommand; 31private static ICommand _restoreWindowCommand = System.Windows.SystemCommands.RestoreWindowCommand; 32private static ICommand _closeWindowCommand = System.Windows.SystemCommands.CloseWindowCommand; 33private static ICommand _showSystemMenuCommand = System.Windows.SystemCommands.ShowSystemMenuCommand; 181SystemCommands.MinimizeWindow(rw); 205SystemCommands.MaximizeWindow(rw); 229SystemCommands.RestoreWindow(rw); 248SystemCommands.CloseWindow(rw); 290SystemCommands.ShowSystemMenu(rw, compositionTarget.TransformFromDevice.Transform(devicePoint)); 327if (SystemCommands.ShowSystemMenuCommand.CanExecute(null, this)) 329SystemCommands.ShowSystemMenuCommand.Execute(null, this); 334if (SystemCommands.CloseWindowCommand.CanExecute(null, this)) 336SystemCommands.CloseWindowCommand.Execute(null, this); 380if (SystemCommands.ShowSystemMenuCommand.CanExecute(e, this)) 382SystemCommands.ShowSystemMenuCommand.Execute(e, this);