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