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