119 references to Command
PresentationCore (4)
System\Windows\Input\Command\CommandBinding.cs (1)
155
CanExecuteRoutedEventArgs canExecuteArgs = new(e.
Command
, e.Parameter)
System\Windows\Input\Command\CommandManager.cs (3)
475
if ((sender != null) && (e != null) && (e.
Command
!= null))
477
FindCommandBinding(sender, e, e.
Command
, true);
666
RoutedCommand command = e.
Command
as RoutedCommand;
PresentationFramework (101)
System\Windows\Controls\DocumentViewer.cs (20)
1854
if (args.
Command
== ViewThumbnailsCommand)
1858
else if (args.
Command
== FitToWidthCommand)
1862
else if (args.
Command
== FitToHeightCommand)
1866
else if (args.
Command
== FitToMaxPagesAcrossCommand)
1870
else if (args.
Command
== ApplicationCommands.Find)
1874
else if (args.
Command
== ComponentCommands.ScrollPageUp)
1878
else if (args.
Command
== ComponentCommands.ScrollPageDown)
1882
else if (args.
Command
== ComponentCommands.ScrollPageLeft)
1886
else if (args.
Command
== ComponentCommands.ScrollPageRight)
1890
else if (args.
Command
== ComponentCommands.MoveUp)
1894
else if (args.
Command
== ComponentCommands.MoveDown)
1898
else if (args.
Command
== ComponentCommands.MoveLeft)
1902
else if (args.
Command
== ComponentCommands.MoveRight)
1906
else if (args.
Command
== NavigationCommands.Zoom)
1910
else if (args.
Command
== NavigationCommands.DecreaseZoom)
1914
else if (args.
Command
== NavigationCommands.IncreaseZoom)
1918
else if (args.
Command
== NavigationCommands.PreviousPage)
1922
else if (args.
Command
== NavigationCommands.NextPage)
1926
else if (args.
Command
== NavigationCommands.FirstPage)
1930
else if (args.
Command
== NavigationCommands.LastPage)
System\Windows\Controls\FlowDocumentReader.cs (10)
1441
if (args.
Command
== FlowDocumentReader.SwitchViewingModeCommand)
1445
else if (args.
Command
== ApplicationCommands.Find)
1449
else if (args.
Command
== ApplicationCommands.Print)
1453
else if (args.
Command
== ApplicationCommands.CancelPrint)
1457
else if (args.
Command
== NavigationCommands.IncreaseZoom)
1461
else if (args.
Command
== NavigationCommands.DecreaseZoom)
1465
else if (args.
Command
== NavigationCommands.PreviousPage)
1469
else if (args.
Command
== NavigationCommands.NextPage)
1473
else if (args.
Command
== NavigationCommands.FirstPage)
1477
else if (args.
Command
== NavigationCommands.LastPage)
System\Windows\Controls\FlowDocumentScrollViewer.cs (13)
1453
if (args.
Command
== ApplicationCommands.Find)
1457
else if (args.
Command
== ApplicationCommands.Print)
1461
else if (args.
Command
== ApplicationCommands.CancelPrint)
1465
else if (args.
Command
== NavigationCommands.IncreaseZoom)
1469
else if (args.
Command
== NavigationCommands.DecreaseZoom)
1473
else if (args.
Command
== _commandLineDown)
1480
else if (args.
Command
== _commandLineUp)
1487
else if (args.
Command
== _commandLineLeft)
1494
else if (args.
Command
== _commandLineRight)
1501
else if (args.
Command
== NavigationCommands.NextPage)
1508
else if (args.
Command
== NavigationCommands.PreviousPage)
1515
else if (args.
Command
== NavigationCommands.FirstPage)
1522
else if (args.
Command
== NavigationCommands.LastPage)
System\Windows\Controls\InkCanvas.cs (1)
2703
ICommand command = args.
Command
;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (7)
1524
if (args.
Command
== NavigationCommands.PreviousPage)
1528
else if (args.
Command
== NavigationCommands.NextPage)
1532
else if (args.
Command
== NavigationCommands.FirstPage)
1536
else if (args.
Command
== NavigationCommands.LastPage)
1540
else if (args.
Command
== NavigationCommands.GoToPage)
1562
else if (args.
Command
== ApplicationCommands.Print)
1566
else if (args.
Command
== ApplicationCommands.CancelPrint)
System\Windows\Controls\Primitives\ScrollBar.cs (13)
475
if (args.
Command
== ScrollBar.ScrollHereCommand)
484
if (args.
Command
== ScrollBar.LineUpCommand)
488
else if (args.
Command
== ScrollBar.LineDownCommand)
492
else if (args.
Command
== ScrollBar.PageUpCommand)
496
else if (args.
Command
== ScrollBar.PageDownCommand)
500
else if (args.
Command
== ScrollBar.ScrollToTopCommand)
504
else if (args.
Command
== ScrollBar.ScrollToBottomCommand)
511
if (args.
Command
== ScrollBar.LineLeftCommand)
515
else if (args.
Command
== ScrollBar.LineRightCommand)
519
else if (args.
Command
== ScrollBar.PageLeftCommand)
523
else if (args.
Command
== ScrollBar.PageRightCommand)
527
else if (args.
Command
== ScrollBar.ScrollToLeftEndCommand)
531
else if (args.
Command
== ScrollBar.ScrollToRightEndCommand)
System\Windows\Controls\ScrollViewer.cs (20)
2497
if (args.
Command
== ScrollBar.DeferScrollToHorizontalOffsetCommand)
2501
else if (args.
Command
== ScrollBar.DeferScrollToVerticalOffsetCommand)
2505
else if (args.
Command
== ScrollBar.LineLeftCommand)
2509
else if (args.
Command
== ScrollBar.LineRightCommand)
2513
else if (args.
Command
== ScrollBar.PageLeftCommand)
2517
else if (args.
Command
== ScrollBar.PageRightCommand)
2521
else if (args.
Command
== ScrollBar.LineUpCommand)
2525
else if (args.
Command
== ScrollBar.LineDownCommand)
2529
else if ( args.
Command
== ScrollBar.PageUpCommand
2530
|| args.
Command
== ComponentCommands.ScrollPageUp )
2534
else if ( args.
Command
== ScrollBar.PageDownCommand
2535
|| args.
Command
== ComponentCommands.ScrollPageDown )
2539
else if (args.
Command
== ScrollBar.ScrollToEndCommand)
2543
else if (args.
Command
== ScrollBar.ScrollToHomeCommand)
2547
else if (args.
Command
== ScrollBar.ScrollToLeftEndCommand)
2551
else if (args.
Command
== ScrollBar.ScrollToRightEndCommand)
2555
else if (args.
Command
== ScrollBar.ScrollToTopCommand)
2559
else if (args.
Command
== ScrollBar.ScrollToBottomCommand)
2563
else if (args.
Command
== ScrollBar.ScrollToHorizontalOffsetCommand)
2567
else if (args.
Command
== ScrollBar.ScrollToVerticalOffsetCommand)
System\Windows\Controls\SinglePageViewer.cs (3)
1322
if (args.
Command
== NavigationCommands.IncreaseZoom)
1326
else if (args.
Command
== NavigationCommands.DecreaseZoom)
1330
else if (args.
Command
== ApplicationCommands.Find)
System\Windows\Controls\StickyNote.cs (1)
1694
RoutedCommand command = (RoutedCommand)(args.
Command
);
System\windows\Documents\TextEditorLists.cs (5)
134
if (args.
Command
== EditingCommands.ToggleBullets)
138
else if (args.
Command
== EditingCommands.ToggleNumbering)
142
else if (args.
Command
== EditingCommands.RemoveListMarkers)
146
else if (args.
Command
== EditingCommands.IncreaseIndentation)
150
else if (args.
Command
== EditingCommands.DecreaseIndentation)
System\windows\Documents\TextEditorTables.cs (7)
67
if (args.
Command
== EditingCommands.InsertTable)
71
else if (args.
Command
== EditingCommands.InsertRows)
75
else if (args.
Command
== EditingCommands.InsertColumns)
79
else if (args.
Command
== EditingCommands.DeleteRows)
83
else if (args.
Command
== EditingCommands.DeleteColumns)
87
else if (args.
Command
== EditingCommands.MergeCells)
91
else if (args.
Command
== EditingCommands.SplitCell)
System\windows\Documents\TextEditorTyping.cs (1)
1069
wasSelectionChanged = HandleEnterBreakForRichText(This, args.
Command
);
PresentationUI (14)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (14)
1312
if ((e != null) && (e.
Command
!= null))
1315
if (e.
Command
.Equals(ApplicationCommands.Save))
1328
else if (e.
Command
.Equals(ApplicationCommands.SaveAs))
1334
else if (e.
Command
.Equals(ApplicationCommands.Properties))
1340
else if (e.
Command
.Equals(DocumentApplicationDocumentViewer.FocusToolBar))
1422
if ((e != null) && (dv != null) && (e.
Command
!= null))
1425
if (e.
Command
.Equals(NavigationCommands.FirstPage))
1430
else if (e.
Command
.Equals(NavigationCommands.LastPage))
1477
if (e.
Command
.Equals(DocumentApplicationDocumentViewer.Sign))
1481
else if (e.
Command
.Equals(DocumentApplicationDocumentViewer.RequestSigners))
1485
else if (e.
Command
.Equals(DocumentApplicationDocumentViewer.ShowSignatureSummary))
1571
if (e.
Command
.Equals(DocumentApplicationDocumentViewer.ShowRMPermissions))
1575
else if (e.
Command
.Equals(DocumentApplicationDocumentViewer.ShowRMCredentialManager))
1579
else if (e.
Command
.Equals(DocumentApplicationDocumentViewer.ShowRMPublishingUI))