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)
1693if (args.Command == ViewThumbnailsCommand || 1694args.Command == FitToWidthCommand || 1695args.Command == FitToHeightCommand || 1696args.Command == FitToMaxPagesAcrossCommand || 1697args.Command == NavigationCommands.Zoom) 1702else if (args.Command == ApplicationCommands.Find) 1707else if (args.Command == ComponentCommands.ScrollPageUp || 1708args.Command == ComponentCommands.MoveUp) 1714else if (args.Command == ComponentCommands.ScrollPageDown || 1715args.Command == ComponentCommands.MoveDown) 1721else if (args.Command == ComponentCommands.ScrollPageLeft || 1722args.Command == ComponentCommands.MoveLeft) 1728else if (args.Command == ComponentCommands.ScrollPageRight || 1729args.Command == ComponentCommands.MoveRight) 1735else if (args.Command == NavigationCommands.IncreaseZoom) 1741else if (args.Command == NavigationCommands.DecreaseZoom) 1747else if (args.Command == NavigationCommands.PreviousPage 1748|| args.Command == NavigationCommands.FirstPage) 1754else if (args.Command == NavigationCommands.NextPage 1755|| args.Command == NavigationCommands.LastPage) 1761else 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)
1388if (args.Command == ApplicationCommands.Find) 1392else if (args.Command == ApplicationCommands.Print) 1396else if (args.Command == ApplicationCommands.CancelPrint) 1407args.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)
2579if ( args.Command == ComponentCommands.ScrollPageUp 2580|| args.Command == ComponentCommands.ScrollPageDown ) 2596else if ((args.Command == ScrollBar.DeferScrollToHorizontalOffsetCommand) || 2597(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)
1697RoutedCommand 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))