60 references to Command
PresentationCore (3)
System\Windows\Input\Command\CommandManager.cs (3)
440if ((sender != null) && (e != null) && (e.Command != null)) 442FindCommandBinding(sender, e, e.Command, false); 650RoutedCommand command = e.Command as RoutedCommand;
PresentationFramework (43)
System\Windows\Controls\DocumentViewer.cs (21)
1697if (args.Command == ViewThumbnailsCommand || 1698args.Command == FitToWidthCommand || 1699args.Command == FitToHeightCommand || 1700args.Command == FitToMaxPagesAcrossCommand || 1701args.Command == NavigationCommands.Zoom) 1706else if (args.Command == ApplicationCommands.Find) 1711else if (args.Command == ComponentCommands.ScrollPageUp || 1712args.Command == ComponentCommands.MoveUp) 1718else if (args.Command == ComponentCommands.ScrollPageDown || 1719args.Command == ComponentCommands.MoveDown) 1725else if (args.Command == ComponentCommands.ScrollPageLeft || 1726args.Command == ComponentCommands.MoveLeft) 1732else if (args.Command == ComponentCommands.ScrollPageRight || 1733args.Command == ComponentCommands.MoveRight) 1739else if (args.Command == NavigationCommands.IncreaseZoom) 1745else if (args.Command == NavigationCommands.DecreaseZoom) 1751else if (args.Command == NavigationCommands.PreviousPage 1752|| args.Command == NavigationCommands.FirstPage) 1758else if (args.Command == NavigationCommands.NextPage 1759|| args.Command == NavigationCommands.LastPage) 1765else if (args.Command == NavigationCommands.GoToPage)
System\Windows\Controls\FlowDocumentReader.cs (7)
1381if (args.Command == FlowDocumentReader.SwitchViewingModeCommand) 1395else if (args.Command == ApplicationCommands.Find) 1399else if (args.Command == ApplicationCommands.Print) 1403else if (args.Command == ApplicationCommands.CancelPrint) 1414args.CanExecute = (args.Command == ApplicationCommands.CancelPrint); 1579if (args.Command == ApplicationCommands.Find) 1585else if (args.Command == ApplicationCommands.Print)
System\Windows\Controls\FlowDocumentScrollViewer.cs (4)
1401if (args.Command == ApplicationCommands.Find) 1405else if (args.Command == ApplicationCommands.Print) 1409else if (args.Command == ApplicationCommands.CancelPrint) 1420args.CanExecute = (args.Command == ApplicationCommands.CancelPrint);
System\Windows\Controls\InkCanvas.cs (1)
2776RoutedCommand command = (RoutedCommand)(args.Command);
System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1477if (args.Command == ApplicationCommands.Print) 1482else if (args.Command == ApplicationCommands.CancelPrint)
System\Windows\Controls\Primitives\ScrollBar.cs (1)
642args.CanExecute = (args.Command == ScrollBar.ScrollHereCommand);
System\Windows\Controls\ScrollViewer.cs (4)
2585if ( args.Command == ComponentCommands.ScrollPageUp 2586|| args.Command == ComponentCommands.ScrollPageDown ) 2602else if ((args.Command == ScrollBar.DeferScrollToHorizontalOffsetCommand) || 2603(args.Command == ScrollBar.DeferScrollToVerticalOffsetCommand))
System\Windows\Controls\SinglePageViewer.cs (2)
1298if (args.Command == ApplicationCommands.Find) 1352if (args.Command != ApplicationCommands.CancelPrint)
System\Windows\Controls\StickyNote.cs (1)
1704RoutedCommand command = (RoutedCommand)( args.Command );
PresentationUI (14)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (14)
1363if ((e != null) && (e.Command != null)) 1367if (e.Command.Equals(ApplicationCommands.Save)) 1382else if (e.Command.Equals(ApplicationCommands.SaveAs)) 1390else if (e.Command.Equals(ApplicationCommands.Properties)) 1398else if (e.Command.Equals(DocumentApplicationDocumentViewer.FocusToolBar)) 1445if ((e != null) && (dv != null) && (e.Command != null)) 1448if (e.Command.Equals(NavigationCommands.FirstPage)) 1452else if (e.Command.Equals(NavigationCommands.LastPage)) 1510if (e.Command.Equals(DocumentApplicationDocumentViewer.Sign)) 1514else if (e.Command.Equals(DocumentApplicationDocumentViewer.RequestSigners)) 1518else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowSignatureSummary)) 1604if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMCredentialManager)) 1608else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPermissions)) 1615else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPublishingUI))