119 references to Command
PresentationCore (4)
System\Windows\Input\Command\CommandBinding.cs (1)
154CanExecuteRoutedEventArgs canExecuteArgs = new(e.Command, e.Parameter)
System\Windows\Input\Command\CommandManager.cs (3)
474if ((sender != null) && (e != null) && (e.Command != null)) 476FindCommandBinding(sender, e, e.Command, true); 665RoutedCommand command = e.Command as RoutedCommand;
PresentationFramework (101)
System\Windows\Controls\DocumentViewer.cs (20)
1799if (args.Command == ViewThumbnailsCommand) 1803else if (args.Command == FitToWidthCommand) 1807else if (args.Command == FitToHeightCommand) 1811else if (args.Command == FitToMaxPagesAcrossCommand) 1815else if (args.Command == ApplicationCommands.Find) 1819else if (args.Command == ComponentCommands.ScrollPageUp) 1823else if (args.Command == ComponentCommands.ScrollPageDown) 1827else if (args.Command == ComponentCommands.ScrollPageLeft) 1831else if (args.Command == ComponentCommands.ScrollPageRight) 1835else if (args.Command == ComponentCommands.MoveUp) 1839else if (args.Command == ComponentCommands.MoveDown) 1843else if (args.Command == ComponentCommands.MoveLeft) 1847else if (args.Command == ComponentCommands.MoveRight) 1851else if (args.Command == NavigationCommands.Zoom) 1855else if (args.Command == NavigationCommands.DecreaseZoom) 1859else if (args.Command == NavigationCommands.IncreaseZoom) 1863else if (args.Command == NavigationCommands.PreviousPage) 1867else if (args.Command == NavigationCommands.NextPage) 1871else if (args.Command == NavigationCommands.FirstPage) 1875else if (args.Command == NavigationCommands.LastPage)
System\Windows\Controls\FlowDocumentReader.cs (10)
1428if (args.Command == FlowDocumentReader.SwitchViewingModeCommand) 1432else if (args.Command == ApplicationCommands.Find) 1436else if (args.Command == ApplicationCommands.Print) 1440else if (args.Command == ApplicationCommands.CancelPrint) 1444else if (args.Command == NavigationCommands.IncreaseZoom) 1448else if (args.Command == NavigationCommands.DecreaseZoom) 1452else if (args.Command == NavigationCommands.PreviousPage) 1456else if (args.Command == NavigationCommands.NextPage) 1460else if (args.Command == NavigationCommands.FirstPage) 1464else if (args.Command == NavigationCommands.LastPage)
System\Windows\Controls\FlowDocumentScrollViewer.cs (13)
1437if (args.Command == ApplicationCommands.Find) 1441else if (args.Command == ApplicationCommands.Print) 1445else if (args.Command == ApplicationCommands.CancelPrint) 1449else if (args.Command == NavigationCommands.IncreaseZoom) 1453else if (args.Command == NavigationCommands.DecreaseZoom) 1457else if (args.Command == _commandLineDown) 1461else if (args.Command == _commandLineUp) 1465else if (args.Command == _commandLineLeft) 1469else if (args.Command == _commandLineRight) 1473else if (args.Command == NavigationCommands.NextPage) 1477else if (args.Command == NavigationCommands.PreviousPage) 1481else if (args.Command == NavigationCommands.FirstPage) 1485else if (args.Command == NavigationCommands.LastPage)
System\Windows\Controls\InkCanvas.cs (1)
2702ICommand command = args.Command;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (7)
1505if (args.Command == NavigationCommands.PreviousPage) 1509else if (args.Command == NavigationCommands.NextPage) 1513else if (args.Command == NavigationCommands.FirstPage) 1517else if (args.Command == NavigationCommands.LastPage) 1521else if (args.Command == NavigationCommands.GoToPage) 1543else if (args.Command == ApplicationCommands.Print) 1547else if (args.Command == ApplicationCommands.CancelPrint)
System\Windows\Controls\Primitives\ScrollBar.cs (13)
474if (args.Command == ScrollBar.ScrollHereCommand) 483if (args.Command == ScrollBar.LineUpCommand) 487else if (args.Command == ScrollBar.LineDownCommand) 491else if (args.Command == ScrollBar.PageUpCommand) 495else if (args.Command == ScrollBar.PageDownCommand) 499else if (args.Command == ScrollBar.ScrollToTopCommand) 503else if (args.Command == ScrollBar.ScrollToBottomCommand) 510if (args.Command == ScrollBar.LineLeftCommand) 514else if (args.Command == ScrollBar.LineRightCommand) 518else if (args.Command == ScrollBar.PageLeftCommand) 522else if (args.Command == ScrollBar.PageRightCommand) 526else if (args.Command == ScrollBar.ScrollToLeftEndCommand) 530else if (args.Command == ScrollBar.ScrollToRightEndCommand)
System\Windows\Controls\ScrollViewer.cs (20)
2490if (args.Command == ScrollBar.DeferScrollToHorizontalOffsetCommand) 2494else if (args.Command == ScrollBar.DeferScrollToVerticalOffsetCommand) 2498else if (args.Command == ScrollBar.LineLeftCommand) 2502else if (args.Command == ScrollBar.LineRightCommand) 2506else if (args.Command == ScrollBar.PageLeftCommand) 2510else if (args.Command == ScrollBar.PageRightCommand) 2514else if (args.Command == ScrollBar.LineUpCommand) 2518else if (args.Command == ScrollBar.LineDownCommand) 2522else if ( args.Command == ScrollBar.PageUpCommand 2523|| args.Command == ComponentCommands.ScrollPageUp ) 2527else if ( args.Command == ScrollBar.PageDownCommand 2528|| args.Command == ComponentCommands.ScrollPageDown ) 2532else if (args.Command == ScrollBar.ScrollToEndCommand) 2536else if (args.Command == ScrollBar.ScrollToHomeCommand) 2540else if (args.Command == ScrollBar.ScrollToLeftEndCommand) 2544else if (args.Command == ScrollBar.ScrollToRightEndCommand) 2548else if (args.Command == ScrollBar.ScrollToTopCommand) 2552else if (args.Command == ScrollBar.ScrollToBottomCommand) 2556else if (args.Command == ScrollBar.ScrollToHorizontalOffsetCommand) 2560else if (args.Command == ScrollBar.ScrollToVerticalOffsetCommand)
System\Windows\Controls\SinglePageViewer.cs (3)
1321if (args.Command == NavigationCommands.IncreaseZoom) 1325else if (args.Command == NavigationCommands.DecreaseZoom) 1329else if (args.Command == ApplicationCommands.Find)
System\Windows\Controls\StickyNote.cs (1)
1667RoutedCommand command = (RoutedCommand)(args.Command);
System\windows\Documents\TextEditorLists.cs (5)
133if (args.Command == EditingCommands.ToggleBullets) 137else if (args.Command == EditingCommands.ToggleNumbering) 141else if (args.Command == EditingCommands.RemoveListMarkers) 145else if (args.Command == EditingCommands.IncreaseIndentation) 149else if (args.Command == EditingCommands.DecreaseIndentation)
System\windows\Documents\TextEditorTables.cs (7)
66if (args.Command == EditingCommands.InsertTable) 70else if (args.Command == EditingCommands.InsertRows) 74else if (args.Command == EditingCommands.InsertColumns) 78else if (args.Command == EditingCommands.DeleteRows) 82else if (args.Command == EditingCommands.DeleteColumns) 86else if (args.Command == EditingCommands.MergeCells) 90else if (args.Command == EditingCommands.SplitCell)
System\windows\Documents\TextEditorTyping.cs (1)
1059wasSelectionChanged = HandleEnterBreakForRichText(This, args.Command);
PresentationUI (14)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (14)
1308if ((e != null) && (e.Command != null)) 1311if (e.Command.Equals(ApplicationCommands.Save)) 1324else if (e.Command.Equals(ApplicationCommands.SaveAs)) 1330else if (e.Command.Equals(ApplicationCommands.Properties)) 1336else if (e.Command.Equals(DocumentApplicationDocumentViewer.FocusToolBar)) 1418if ((e != null) && (dv != null) && (e.Command != null)) 1421if (e.Command.Equals(NavigationCommands.FirstPage)) 1426else if (e.Command.Equals(NavigationCommands.LastPage)) 1473if (e.Command.Equals(DocumentApplicationDocumentViewer.Sign)) 1477else if (e.Command.Equals(DocumentApplicationDocumentViewer.RequestSigners)) 1481else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowSignatureSummary)) 1567if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPermissions)) 1571else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMCredentialManager)) 1575else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPublishingUI))