60 references to Command
PresentationCore (3)
System\Windows\Input\Command\CommandManager.cs (3)
451
if ((sender != null) && (e != null) && (e.
Command
!= null))
453
FindCommandBinding(sender, e, e.
Command
, false);
657
RoutedCommand command = e.
Command
as RoutedCommand;
PresentationFramework (43)
System\Windows\Controls\DocumentViewer.cs (21)
1757
if (args.
Command
== ViewThumbnailsCommand ||
1758
args.
Command
== FitToWidthCommand ||
1759
args.
Command
== FitToHeightCommand ||
1760
args.
Command
== FitToMaxPagesAcrossCommand ||
1761
args.
Command
== NavigationCommands.Zoom)
1766
else if (args.
Command
== ApplicationCommands.Find)
1771
else if (args.
Command
== ComponentCommands.ScrollPageUp ||
1772
args.
Command
== ComponentCommands.MoveUp)
1778
else if (args.
Command
== ComponentCommands.ScrollPageDown ||
1779
args.
Command
== ComponentCommands.MoveDown)
1785
else if (args.
Command
== ComponentCommands.ScrollPageLeft ||
1786
args.
Command
== ComponentCommands.MoveLeft)
1792
else if (args.
Command
== ComponentCommands.ScrollPageRight ||
1793
args.
Command
== ComponentCommands.MoveRight)
1799
else if (args.
Command
== NavigationCommands.IncreaseZoom)
1805
else if (args.
Command
== NavigationCommands.DecreaseZoom)
1811
else if (args.
Command
== NavigationCommands.PreviousPage
1812
|| args.
Command
== NavigationCommands.FirstPage)
1818
else if (args.
Command
== NavigationCommands.NextPage
1819
|| args.
Command
== NavigationCommands.LastPage)
1825
else if (args.
Command
== NavigationCommands.GoToPage)
System\Windows\Controls\FlowDocumentReader.cs (7)
1397
if (args.
Command
== FlowDocumentReader.SwitchViewingModeCommand)
1411
else if (args.
Command
== ApplicationCommands.Find)
1415
else if (args.
Command
== ApplicationCommands.Print)
1419
else if (args.
Command
== ApplicationCommands.CancelPrint)
1430
args.CanExecute = (args.
Command
== ApplicationCommands.CancelPrint);
1610
if (args.
Command
== ApplicationCommands.Find)
1616
else if (args.
Command
== ApplicationCommands.Print)
System\Windows\Controls\FlowDocumentScrollViewer.cs (4)
1413
if (args.
Command
== ApplicationCommands.Find)
1417
else if (args.
Command
== ApplicationCommands.Print)
1421
else if (args.
Command
== ApplicationCommands.CancelPrint)
1432
args.CanExecute = (args.
Command
== ApplicationCommands.CancelPrint);
System\Windows\Controls\InkCanvas.cs (1)
2772
RoutedCommand command = (RoutedCommand)(args.
Command
);
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1510
if (args.
Command
== ApplicationCommands.Print)
1515
else if (args.
Command
== ApplicationCommands.CancelPrint)
System\Windows\Controls\Primitives\ScrollBar.cs (1)
656
args.CanExecute = (args.
Command
== ScrollBar.ScrollHereCommand);
System\Windows\Controls\ScrollViewer.cs (4)
2595
if ( args.
Command
== ComponentCommands.ScrollPageUp
2596
|| args.
Command
== ComponentCommands.ScrollPageDown )
2612
else if ((args.
Command
== ScrollBar.DeferScrollToHorizontalOffsetCommand) ||
2613
(args.
Command
== ScrollBar.DeferScrollToVerticalOffsetCommand))
System\Windows\Controls\SinglePageViewer.cs (2)
1299
if (args.
Command
== ApplicationCommands.Find)
1353
if (args.
Command
!= ApplicationCommands.CancelPrint)
System\Windows\Controls\StickyNote.cs (1)
1745
RoutedCommand command = (RoutedCommand)( args.
Command
);
PresentationUI (14)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (14)
1359
if ((e != null) && (e.
Command
!= null))
1363
if (e.
Command
.Equals(ApplicationCommands.Save))
1378
else if (e.
Command
.Equals(ApplicationCommands.SaveAs))
1386
else if (e.
Command
.Equals(ApplicationCommands.Properties))
1394
else if (e.
Command
.Equals(DocumentApplicationDocumentViewer.FocusToolBar))
1441
if ((e != null) && (dv != null) && (e.
Command
!= null))
1444
if (e.
Command
.Equals(NavigationCommands.FirstPage))
1448
else if (e.
Command
.Equals(NavigationCommands.LastPage))
1506
if (e.
Command
.Equals(DocumentApplicationDocumentViewer.Sign))
1510
else if (e.
Command
.Equals(DocumentApplicationDocumentViewer.RequestSigners))
1514
else if (e.
Command
.Equals(DocumentApplicationDocumentViewer.ShowSignatureSummary))
1600
if (e.
Command
.Equals(DocumentApplicationDocumentViewer.ShowRMCredentialManager))
1604
else if (e.
Command
.Equals(DocumentApplicationDocumentViewer.ShowRMPermissions))
1611
else if (e.
Command
.Equals(DocumentApplicationDocumentViewer.ShowRMPublishingUI))