46 references to Command
PresentationCore (3)
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (3)
519
if ((sender != null) && (e != null) && (e.
Command
!= null))
521
FindCommandBinding(sender, e, e.
Command
, false);
756
RoutedCommand command = e.
Command
as RoutedCommand;
PresentationFramework (43)
src\Framework\System\Windows\Controls\DocumentViewer.cs (21)
1790
if (args.
Command
== ViewThumbnailsCommand ||
1791
args.
Command
== FitToWidthCommand ||
1792
args.
Command
== FitToHeightCommand ||
1793
args.
Command
== FitToMaxPagesAcrossCommand ||
1794
args.
Command
== NavigationCommands.Zoom)
1799
else if (args.
Command
== ApplicationCommands.Find)
1804
else if (args.
Command
== ComponentCommands.ScrollPageUp ||
1805
args.
Command
== ComponentCommands.MoveUp)
1811
else if (args.
Command
== ComponentCommands.ScrollPageDown ||
1812
args.
Command
== ComponentCommands.MoveDown)
1818
else if (args.
Command
== ComponentCommands.ScrollPageLeft ||
1819
args.
Command
== ComponentCommands.MoveLeft)
1825
else if (args.
Command
== ComponentCommands.ScrollPageRight ||
1826
args.
Command
== ComponentCommands.MoveRight)
1832
else if (args.
Command
== NavigationCommands.IncreaseZoom)
1838
else if (args.
Command
== NavigationCommands.DecreaseZoom)
1844
else if (args.
Command
== NavigationCommands.PreviousPage
1845
|| args.
Command
== NavigationCommands.FirstPage)
1851
else if (args.
Command
== NavigationCommands.NextPage
1852
|| args.
Command
== NavigationCommands.LastPage)
1858
else if (args.
Command
== NavigationCommands.GoToPage)
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (7)
1403
if (args.
Command
== FlowDocumentReader.SwitchViewingModeCommand)
1417
else if (args.
Command
== ApplicationCommands.Find)
1421
else if (args.
Command
== ApplicationCommands.Print)
1425
else if (args.
Command
== ApplicationCommands.CancelPrint)
1436
args.CanExecute = (args.
Command
== ApplicationCommands.CancelPrint);
1616
if (args.
Command
== ApplicationCommands.Find)
1622
else if (args.
Command
== ApplicationCommands.Print)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (4)
1421
if (args.
Command
== ApplicationCommands.Find)
1425
else if (args.
Command
== ApplicationCommands.Print)
1429
else if (args.
Command
== ApplicationCommands.CancelPrint)
1440
args.CanExecute = (args.
Command
== ApplicationCommands.CancelPrint);
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2918
RoutedCommand command = (RoutedCommand)(args.
Command
);
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1522
if (args.
Command
== ApplicationCommands.Print)
1527
else if (args.
Command
== ApplicationCommands.CancelPrint)
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (1)
661
args.CanExecute = (args.
Command
== ScrollBar.ScrollHereCommand);
src\Framework\System\Windows\Controls\ScrollViewer.cs (4)
2635
if ( args.
Command
== ComponentCommands.ScrollPageUp
2636
|| args.
Command
== ComponentCommands.ScrollPageDown )
2652
else if ((args.
Command
== ScrollBar.DeferScrollToHorizontalOffsetCommand) ||
2653
(args.
Command
== ScrollBar.DeferScrollToVerticalOffsetCommand))
src\Framework\System\Windows\Controls\SinglePageViewer.cs (2)
1306
if (args.
Command
== ApplicationCommands.Find)
1360
if (args.
Command
!= ApplicationCommands.CancelPrint)
src\Framework\System\Windows\Controls\StickyNote.cs (1)
1782
RoutedCommand command = (RoutedCommand)( args.
Command
);