119 references to Command
PresentationCore (4)
System\Windows\Input\Command\CommandBinding.cs (1)
163
CanExecuteRoutedEventArgs canExecuteArgs = new(e.
Command
, e.Parameter)
System\Windows\Input\Command\CommandManager.cs (3)
486
if ((sender != null) && (e != null) && (e.
Command
!= null))
488
FindCommandBinding(sender, e, e.
Command
, true);
673
RoutedCommand command = e.
Command
as RoutedCommand;
PresentationFramework (101)
System\Windows\Controls\DocumentViewer.cs (20)
1860
if (args.
Command
== ViewThumbnailsCommand)
1864
else if (args.
Command
== FitToWidthCommand)
1868
else if (args.
Command
== FitToHeightCommand)
1872
else if (args.
Command
== FitToMaxPagesAcrossCommand)
1876
else if (args.
Command
== ApplicationCommands.Find)
1880
else if (args.
Command
== ComponentCommands.ScrollPageUp)
1884
else if (args.
Command
== ComponentCommands.ScrollPageDown)
1888
else if (args.
Command
== ComponentCommands.ScrollPageLeft)
1892
else if (args.
Command
== ComponentCommands.ScrollPageRight)
1896
else if (args.
Command
== ComponentCommands.MoveUp)
1900
else if (args.
Command
== ComponentCommands.MoveDown)
1904
else if (args.
Command
== ComponentCommands.MoveLeft)
1908
else if (args.
Command
== ComponentCommands.MoveRight)
1912
else if (args.
Command
== NavigationCommands.Zoom)
1916
else if (args.
Command
== NavigationCommands.DecreaseZoom)
1920
else if (args.
Command
== NavigationCommands.IncreaseZoom)
1924
else if (args.
Command
== NavigationCommands.PreviousPage)
1928
else if (args.
Command
== NavigationCommands.NextPage)
1932
else if (args.
Command
== NavigationCommands.FirstPage)
1936
else if (args.
Command
== NavigationCommands.LastPage)
System\Windows\Controls\FlowDocumentReader.cs (10)
1445
if (args.
Command
== FlowDocumentReader.SwitchViewingModeCommand)
1449
else if (args.
Command
== ApplicationCommands.Find)
1453
else if (args.
Command
== ApplicationCommands.Print)
1457
else if (args.
Command
== ApplicationCommands.CancelPrint)
1461
else if (args.
Command
== NavigationCommands.IncreaseZoom)
1465
else if (args.
Command
== NavigationCommands.DecreaseZoom)
1469
else if (args.
Command
== NavigationCommands.PreviousPage)
1473
else if (args.
Command
== NavigationCommands.NextPage)
1477
else if (args.
Command
== NavigationCommands.FirstPage)
1481
else if (args.
Command
== NavigationCommands.LastPage)
System\Windows\Controls\FlowDocumentScrollViewer.cs (13)
1450
if (args.
Command
== ApplicationCommands.Find)
1454
else if (args.
Command
== ApplicationCommands.Print)
1458
else if (args.
Command
== ApplicationCommands.CancelPrint)
1462
else if (args.
Command
== NavigationCommands.IncreaseZoom)
1466
else if (args.
Command
== NavigationCommands.DecreaseZoom)
1470
else if (args.
Command
== _commandLineDown)
1477
else if (args.
Command
== _commandLineUp)
1484
else if (args.
Command
== _commandLineLeft)
1491
else if (args.
Command
== _commandLineRight)
1498
else if (args.
Command
== NavigationCommands.NextPage)
1505
else if (args.
Command
== NavigationCommands.PreviousPage)
1512
else if (args.
Command
== NavigationCommands.FirstPage)
1519
else if (args.
Command
== NavigationCommands.LastPage)
System\Windows\Controls\InkCanvas.cs (1)
2699
ICommand command = args.
Command
;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (7)
1539
if (args.
Command
== NavigationCommands.PreviousPage)
1543
else if (args.
Command
== NavigationCommands.NextPage)
1547
else if (args.
Command
== NavigationCommands.FirstPage)
1551
else if (args.
Command
== NavigationCommands.LastPage)
1555
else if (args.
Command
== NavigationCommands.GoToPage)
1579
else if (args.
Command
== ApplicationCommands.Print)
1583
else if (args.
Command
== ApplicationCommands.CancelPrint)
System\Windows\Controls\Primitives\ScrollBar.cs (13)
489
if (args.
Command
== ScrollBar.ScrollHereCommand)
498
if (args.
Command
== ScrollBar.LineUpCommand)
502
else if (args.
Command
== ScrollBar.LineDownCommand)
506
else if (args.
Command
== ScrollBar.PageUpCommand)
510
else if (args.
Command
== ScrollBar.PageDownCommand)
514
else if (args.
Command
== ScrollBar.ScrollToTopCommand)
518
else if (args.
Command
== ScrollBar.ScrollToBottomCommand)
525
if (args.
Command
== ScrollBar.LineLeftCommand)
529
else if (args.
Command
== ScrollBar.LineRightCommand)
533
else if (args.
Command
== ScrollBar.PageLeftCommand)
537
else if (args.
Command
== ScrollBar.PageRightCommand)
541
else if (args.
Command
== ScrollBar.ScrollToLeftEndCommand)
545
else if (args.
Command
== ScrollBar.ScrollToRightEndCommand)
System\Windows\Controls\ScrollViewer.cs (20)
2501
if (args.
Command
== ScrollBar.DeferScrollToHorizontalOffsetCommand)
2505
else if (args.
Command
== ScrollBar.DeferScrollToVerticalOffsetCommand)
2509
else if (args.
Command
== ScrollBar.LineLeftCommand)
2513
else if (args.
Command
== ScrollBar.LineRightCommand)
2517
else if (args.
Command
== ScrollBar.PageLeftCommand)
2521
else if (args.
Command
== ScrollBar.PageRightCommand)
2525
else if (args.
Command
== ScrollBar.LineUpCommand)
2529
else if (args.
Command
== ScrollBar.LineDownCommand)
2533
else if ( args.
Command
== ScrollBar.PageUpCommand
2534
|| args.
Command
== ComponentCommands.ScrollPageUp )
2538
else if ( args.
Command
== ScrollBar.PageDownCommand
2539
|| args.
Command
== ComponentCommands.ScrollPageDown )
2543
else if (args.
Command
== ScrollBar.ScrollToEndCommand)
2547
else if (args.
Command
== ScrollBar.ScrollToHomeCommand)
2551
else if (args.
Command
== ScrollBar.ScrollToLeftEndCommand)
2555
else if (args.
Command
== ScrollBar.ScrollToRightEndCommand)
2559
else if (args.
Command
== ScrollBar.ScrollToTopCommand)
2563
else if (args.
Command
== ScrollBar.ScrollToBottomCommand)
2567
else if (args.
Command
== ScrollBar.ScrollToHorizontalOffsetCommand)
2571
else if (args.
Command
== ScrollBar.ScrollToVerticalOffsetCommand)
System\Windows\Controls\SinglePageViewer.cs (3)
1323
if (args.
Command
== NavigationCommands.IncreaseZoom)
1327
else if (args.
Command
== NavigationCommands.DecreaseZoom)
1331
else if (args.
Command
== ApplicationCommands.Find)
System\Windows\Controls\StickyNote.cs (1)
1709
RoutedCommand command = (RoutedCommand)(args.
Command
);
System\windows\Documents\TextEditorLists.cs (5)
150
if (args.
Command
== EditingCommands.ToggleBullets)
154
else if (args.
Command
== EditingCommands.ToggleNumbering)
158
else if (args.
Command
== EditingCommands.RemoveListMarkers)
162
else if (args.
Command
== EditingCommands.IncreaseIndentation)
166
else if (args.
Command
== EditingCommands.DecreaseIndentation)
System\windows\Documents\TextEditorTables.cs (7)
84
if (args.
Command
== EditingCommands.InsertTable)
88
else if (args.
Command
== EditingCommands.InsertRows)
92
else if (args.
Command
== EditingCommands.InsertColumns)
96
else if (args.
Command
== EditingCommands.DeleteRows)
100
else if (args.
Command
== EditingCommands.DeleteColumns)
104
else if (args.
Command
== EditingCommands.MergeCells)
108
else if (args.
Command
== EditingCommands.SplitCell)
System\windows\Documents\TextEditorTyping.cs (1)
1078
wasSelectionChanged = HandleEnterBreakForRichText(This, args.
Command
);
PresentationUI (14)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (14)
1305
if ((e != null) && (e.
Command
!= null))
1308
if (e.
Command
.Equals(ApplicationCommands.Save))
1321
else if (e.
Command
.Equals(ApplicationCommands.SaveAs))
1327
else if (e.
Command
.Equals(ApplicationCommands.Properties))
1333
else if (e.
Command
.Equals(DocumentApplicationDocumentViewer.FocusToolBar))
1415
if ((e != null) && (dv != null) && (e.
Command
!= null))
1418
if (e.
Command
.Equals(NavigationCommands.FirstPage))
1423
else if (e.
Command
.Equals(NavigationCommands.LastPage))
1470
if (e.
Command
.Equals(DocumentApplicationDocumentViewer.Sign))
1474
else if (e.
Command
.Equals(DocumentApplicationDocumentViewer.RequestSigners))
1478
else if (e.
Command
.Equals(DocumentApplicationDocumentViewer.ShowSignatureSummary))
1564
if (e.
Command
.Equals(DocumentApplicationDocumentViewer.ShowRMPermissions))
1568
else if (e.
Command
.Equals(DocumentApplicationDocumentViewer.ShowRMCredentialManager))
1572
else if (e.
Command
.Equals(DocumentApplicationDocumentViewer.ShowRMPublishingUI))