28 references to SystemCommands
PresentationFramework (6)
System\Windows\Shell\WindowChromeWorker.cs (1)
546SystemCommands.ShowSystemMenuPhysicalCoordinates(_window, new Point(Utility.GET_X_LPARAM(lParam), Utility.GET_Y_LPARAM(lParam)));
System\Windows\SystemCommands.cs (5)
24CloseWindowCommand = new RoutedCommand("CloseWindow", typeof(SystemCommands)); 25MaximizeWindowCommand = new RoutedCommand("MaximizeWindow", typeof(SystemCommands)); 26MinimizeWindowCommand = new RoutedCommand("MinimizeWindow", typeof(SystemCommands)); 27RestoreWindowCommand = new RoutedCommand("RestoreWindow", typeof(SystemCommands)); 28ShowSystemMenuCommand = new RoutedCommand("ShowSystemMenu", typeof(SystemCommands));
System.Windows.Controls.Ribbon (22)
Microsoft\Windows\Controls\Ribbon\RibbonContextualTabGroup.cs (6)
334if (SystemCommands.MaximizeWindowCommand.CanExecute(null, ribbonWindow)) 336SystemCommands.MaximizeWindowCommand.Execute( /*parameter*/ null, /* target*/ ribbonWindow); 339else if (SystemCommands.RestoreWindowCommand.CanExecute(null, ribbonWindow)) 341SystemCommands.RestoreWindowCommand.Execute(/*parameter*/ null, /* target*/ ribbonWindow); 386if (SystemCommands.ShowSystemMenuCommand.CanExecute(null, ribbonWindow)) 388SystemCommands.ShowSystemMenuCommand.Execute( /*parameter*/ null, /* target*/ ribbonWindow);
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (16)
34private static ICommand _minimizeWindowCommand = System.Windows.SystemCommands.MinimizeWindowCommand; 35private static ICommand _maximizeWindowCommand = System.Windows.SystemCommands.MaximizeWindowCommand; 36private static ICommand _restoreWindowCommand = System.Windows.SystemCommands.RestoreWindowCommand; 37private static ICommand _closeWindowCommand = System.Windows.SystemCommands.CloseWindowCommand; 38private static ICommand _showSystemMenuCommand = System.Windows.SystemCommands.ShowSystemMenuCommand; 186SystemCommands.MinimizeWindow(rw); 210SystemCommands.MaximizeWindow(rw); 234SystemCommands.RestoreWindow(rw); 253SystemCommands.CloseWindow(rw); 295SystemCommands.ShowSystemMenu(rw, compositionTarget.TransformFromDevice.Transform(devicePoint)); 332if (SystemCommands.ShowSystemMenuCommand.CanExecute(null, this)) 334SystemCommands.ShowSystemMenuCommand.Execute(null, this); 339if (SystemCommands.CloseWindowCommand.CanExecute(null, this)) 341SystemCommands.CloseWindowCommand.Execute(null, this); 385if (SystemCommands.ShowSystemMenuCommand.CanExecute(e, this)) 387SystemCommands.ShowSystemMenuCommand.Execute(e, this);