106 references to Command
PresentationCore (5)
Core\CSharp\System\Windows\Input\Command\CommandBinding.cs (1)
179
CanExecuteRoutedEventArgs canExecuteArgs = new CanExecuteRoutedEventArgs(e.
Command
, e.Parameter);
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (4)
554
if ((sender != null) && (e != null) && (e.
Command
!= null))
556
FindCommandBinding(sender, e, e.
Command
, true);
588
ISecureCommand secureCommand = e.
Command
as ISecureCommand;
777
RoutedCommand command = e.
Command
as RoutedCommand;
PresentationFramework (101)
src\Framework\System\Windows\Controls\DocumentViewer.cs (20)
1894
if (args.
Command
== ViewThumbnailsCommand)
1898
else if (args.
Command
== FitToWidthCommand)
1902
else if (args.
Command
== FitToHeightCommand)
1906
else if (args.
Command
== FitToMaxPagesAcrossCommand)
1910
else if (args.
Command
== ApplicationCommands.Find)
1914
else if (args.
Command
== ComponentCommands.ScrollPageUp)
1918
else if (args.
Command
== ComponentCommands.ScrollPageDown)
1922
else if (args.
Command
== ComponentCommands.ScrollPageLeft)
1926
else if (args.
Command
== ComponentCommands.ScrollPageRight)
1930
else if (args.
Command
== ComponentCommands.MoveUp)
1934
else if (args.
Command
== ComponentCommands.MoveDown)
1938
else if (args.
Command
== ComponentCommands.MoveLeft)
1942
else if (args.
Command
== ComponentCommands.MoveRight)
1946
else if (args.
Command
== NavigationCommands.Zoom)
1950
else if (args.
Command
== NavigationCommands.DecreaseZoom)
1954
else if (args.
Command
== NavigationCommands.IncreaseZoom)
1958
else if (args.
Command
== NavigationCommands.PreviousPage)
1962
else if (args.
Command
== NavigationCommands.NextPage)
1966
else if (args.
Command
== NavigationCommands.FirstPage)
1970
else if (args.
Command
== NavigationCommands.LastPage)
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (10)
1451
if (args.
Command
== FlowDocumentReader.SwitchViewingModeCommand)
1455
else if (args.
Command
== ApplicationCommands.Find)
1459
else if (args.
Command
== ApplicationCommands.Print)
1463
else if (args.
Command
== ApplicationCommands.CancelPrint)
1467
else if (args.
Command
== NavigationCommands.IncreaseZoom)
1471
else if (args.
Command
== NavigationCommands.DecreaseZoom)
1475
else if (args.
Command
== NavigationCommands.PreviousPage)
1479
else if (args.
Command
== NavigationCommands.NextPage)
1483
else if (args.
Command
== NavigationCommands.FirstPage)
1487
else if (args.
Command
== NavigationCommands.LastPage)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (13)
1458
if (args.
Command
== ApplicationCommands.Find)
1462
else if (args.
Command
== ApplicationCommands.Print)
1466
else if (args.
Command
== ApplicationCommands.CancelPrint)
1470
else if (args.
Command
== NavigationCommands.IncreaseZoom)
1474
else if (args.
Command
== NavigationCommands.DecreaseZoom)
1478
else if (args.
Command
== _commandLineDown)
1485
else if (args.
Command
== _commandLineUp)
1492
else if (args.
Command
== _commandLineLeft)
1499
else if (args.
Command
== _commandLineRight)
1506
else if (args.
Command
== NavigationCommands.NextPage)
1513
else if (args.
Command
== NavigationCommands.PreviousPage)
1520
else if (args.
Command
== NavigationCommands.FirstPage)
1527
else if (args.
Command
== NavigationCommands.LastPage)
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2839
ICommand command = args.
Command
;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (7)
1551
if (args.
Command
== NavigationCommands.PreviousPage)
1555
else if (args.
Command
== NavigationCommands.NextPage)
1559
else if (args.
Command
== NavigationCommands.FirstPage)
1563
else if (args.
Command
== NavigationCommands.LastPage)
1567
else if (args.
Command
== NavigationCommands.GoToPage)
1591
else if (args.
Command
== ApplicationCommands.Print)
1595
else if (args.
Command
== ApplicationCommands.CancelPrint)
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (13)
494
if (args.
Command
== ScrollBar.ScrollHereCommand)
503
if (args.
Command
== ScrollBar.LineUpCommand)
507
else if (args.
Command
== ScrollBar.LineDownCommand)
511
else if (args.
Command
== ScrollBar.PageUpCommand)
515
else if (args.
Command
== ScrollBar.PageDownCommand)
519
else if (args.
Command
== ScrollBar.ScrollToTopCommand)
523
else if (args.
Command
== ScrollBar.ScrollToBottomCommand)
530
if (args.
Command
== ScrollBar.LineLeftCommand)
534
else if (args.
Command
== ScrollBar.LineRightCommand)
538
else if (args.
Command
== ScrollBar.PageLeftCommand)
542
else if (args.
Command
== ScrollBar.PageRightCommand)
546
else if (args.
Command
== ScrollBar.ScrollToLeftEndCommand)
550
else if (args.
Command
== ScrollBar.ScrollToRightEndCommand)
src\Framework\System\Windows\Controls\ScrollViewer.cs (20)
2541
if (args.
Command
== ScrollBar.DeferScrollToHorizontalOffsetCommand)
2545
else if (args.
Command
== ScrollBar.DeferScrollToVerticalOffsetCommand)
2549
else if (args.
Command
== ScrollBar.LineLeftCommand)
2553
else if (args.
Command
== ScrollBar.LineRightCommand)
2557
else if (args.
Command
== ScrollBar.PageLeftCommand)
2561
else if (args.
Command
== ScrollBar.PageRightCommand)
2565
else if (args.
Command
== ScrollBar.LineUpCommand)
2569
else if (args.
Command
== ScrollBar.LineDownCommand)
2573
else if ( args.
Command
== ScrollBar.PageUpCommand
2574
|| args.
Command
== ComponentCommands.ScrollPageUp )
2578
else if ( args.
Command
== ScrollBar.PageDownCommand
2579
|| args.
Command
== ComponentCommands.ScrollPageDown )
2583
else if (args.
Command
== ScrollBar.ScrollToEndCommand)
2587
else if (args.
Command
== ScrollBar.ScrollToHomeCommand)
2591
else if (args.
Command
== ScrollBar.ScrollToLeftEndCommand)
2595
else if (args.
Command
== ScrollBar.ScrollToRightEndCommand)
2599
else if (args.
Command
== ScrollBar.ScrollToTopCommand)
2603
else if (args.
Command
== ScrollBar.ScrollToBottomCommand)
2607
else if (args.
Command
== ScrollBar.ScrollToHorizontalOffsetCommand)
2611
else if (args.
Command
== ScrollBar.ScrollToVerticalOffsetCommand)
src\Framework\System\Windows\Controls\SinglePageViewer.cs (3)
1330
if (args.
Command
== NavigationCommands.IncreaseZoom)
1334
else if (args.
Command
== NavigationCommands.DecreaseZoom)
1338
else if (args.
Command
== ApplicationCommands.Find)
src\Framework\System\Windows\Controls\StickyNote.cs (1)
1746
RoutedCommand command = (RoutedCommand)(args.
Command
);
src\Framework\System\windows\Documents\TextEditorLists.cs (5)
152
if (args.
Command
== EditingCommands.ToggleBullets)
156
else if (args.
Command
== EditingCommands.ToggleNumbering)
160
else if (args.
Command
== EditingCommands.RemoveListMarkers)
164
else if (args.
Command
== EditingCommands.IncreaseIndentation)
168
else if (args.
Command
== EditingCommands.DecreaseIndentation)
src\Framework\System\windows\Documents\TextEditorTables.cs (7)
86
if (args.
Command
== EditingCommands.InsertTable)
90
else if (args.
Command
== EditingCommands.InsertRows)
94
else if (args.
Command
== EditingCommands.InsertColumns)
98
else if (args.
Command
== EditingCommands.DeleteRows)
102
else if (args.
Command
== EditingCommands.DeleteColumns)
106
else if (args.
Command
== EditingCommands.MergeCells)
110
else if (args.
Command
== EditingCommands.SplitCell)
src\Framework\System\windows\Documents\TextEditorTyping.cs (1)
1095
wasSelectionChanged = HandleEnterBreakForRichText(This, args.
Command
);