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