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