60 references to Command
PresentationCore (3)
System\Windows\Input\Command\CommandManager.cs (3)
439if ((sender != null) && (e != null) && (e.Command != null)) 441FindCommandBinding(sender, e, e.Command, false); 649RoutedCommand command = e.Command as RoutedCommand;
PresentationFramework (43)
System\Windows\Controls\DocumentViewer.cs (21)
1696if (args.Command == ViewThumbnailsCommand || 1697args.Command == FitToWidthCommand || 1698args.Command == FitToHeightCommand || 1699args.Command == FitToMaxPagesAcrossCommand || 1700args.Command == NavigationCommands.Zoom) 1705else if (args.Command == ApplicationCommands.Find) 1710else if (args.Command == ComponentCommands.ScrollPageUp || 1711args.Command == ComponentCommands.MoveUp) 1717else if (args.Command == ComponentCommands.ScrollPageDown || 1718args.Command == ComponentCommands.MoveDown) 1724else if (args.Command == ComponentCommands.ScrollPageLeft || 1725args.Command == ComponentCommands.MoveLeft) 1731else if (args.Command == ComponentCommands.ScrollPageRight || 1732args.Command == ComponentCommands.MoveRight) 1738else if (args.Command == NavigationCommands.IncreaseZoom) 1744else if (args.Command == NavigationCommands.DecreaseZoom) 1750else if (args.Command == NavigationCommands.PreviousPage 1751|| args.Command == NavigationCommands.FirstPage) 1757else if (args.Command == NavigationCommands.NextPage 1758|| args.Command == NavigationCommands.LastPage) 1764else if (args.Command == NavigationCommands.GoToPage)
System\Windows\Controls\FlowDocumentReader.cs (7)
1380if (args.Command == FlowDocumentReader.SwitchViewingModeCommand) 1394else if (args.Command == ApplicationCommands.Find) 1398else if (args.Command == ApplicationCommands.Print) 1402else if (args.Command == ApplicationCommands.CancelPrint) 1413args.CanExecute = (args.Command == ApplicationCommands.CancelPrint); 1578if (args.Command == ApplicationCommands.Find) 1584else if (args.Command == ApplicationCommands.Print)
System\Windows\Controls\FlowDocumentScrollViewer.cs (4)
1400if (args.Command == ApplicationCommands.Find) 1404else if (args.Command == ApplicationCommands.Print) 1408else if (args.Command == ApplicationCommands.CancelPrint) 1419args.CanExecute = (args.Command == ApplicationCommands.CancelPrint);
System\Windows\Controls\InkCanvas.cs (1)
2775RoutedCommand command = (RoutedCommand)(args.Command);
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1476if (args.Command == ApplicationCommands.Print) 1481else if (args.Command == ApplicationCommands.CancelPrint)
System\Windows\Controls\Primitives\ScrollBar.cs (1)
641args.CanExecute = (args.Command == ScrollBar.ScrollHereCommand);
System\Windows\Controls\ScrollViewer.cs (4)
2584if ( args.Command == ComponentCommands.ScrollPageUp 2585|| args.Command == ComponentCommands.ScrollPageDown ) 2601else if ((args.Command == ScrollBar.DeferScrollToHorizontalOffsetCommand) || 2602(args.Command == ScrollBar.DeferScrollToVerticalOffsetCommand))
System\Windows\Controls\SinglePageViewer.cs (2)
1297if (args.Command == ApplicationCommands.Find) 1351if (args.Command != ApplicationCommands.CancelPrint)
System\Windows\Controls\StickyNote.cs (1)
1703RoutedCommand command = (RoutedCommand)( args.Command );
PresentationUI (14)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (14)
1362if ((e != null) && (e.Command != null)) 1366if (e.Command.Equals(ApplicationCommands.Save)) 1381else if (e.Command.Equals(ApplicationCommands.SaveAs)) 1389else if (e.Command.Equals(ApplicationCommands.Properties)) 1397else if (e.Command.Equals(DocumentApplicationDocumentViewer.FocusToolBar)) 1444if ((e != null) && (dv != null) && (e.Command != null)) 1447if (e.Command.Equals(NavigationCommands.FirstPage)) 1451else if (e.Command.Equals(NavigationCommands.LastPage)) 1509if (e.Command.Equals(DocumentApplicationDocumentViewer.Sign)) 1513else if (e.Command.Equals(DocumentApplicationDocumentViewer.RequestSigners)) 1517else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowSignatureSummary)) 1603if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMCredentialManager)) 1607else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPermissions)) 1614else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPublishingUI))