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)
1796if (args.Command == ViewThumbnailsCommand) 1800else if (args.Command == FitToWidthCommand) 1804else if (args.Command == FitToHeightCommand) 1808else if (args.Command == FitToMaxPagesAcrossCommand) 1812else if (args.Command == ApplicationCommands.Find) 1816else if (args.Command == ComponentCommands.ScrollPageUp) 1820else if (args.Command == ComponentCommands.ScrollPageDown) 1824else if (args.Command == ComponentCommands.ScrollPageLeft) 1828else if (args.Command == ComponentCommands.ScrollPageRight) 1832else if (args.Command == ComponentCommands.MoveUp) 1836else if (args.Command == ComponentCommands.MoveDown) 1840else if (args.Command == ComponentCommands.MoveLeft) 1844else if (args.Command == ComponentCommands.MoveRight) 1848else if (args.Command == NavigationCommands.Zoom) 1852else if (args.Command == NavigationCommands.DecreaseZoom) 1856else if (args.Command == NavigationCommands.IncreaseZoom) 1860else if (args.Command == NavigationCommands.PreviousPage) 1864else if (args.Command == NavigationCommands.NextPage) 1868else if (args.Command == NavigationCommands.FirstPage) 1872else 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)
1425if (args.Command == ApplicationCommands.Find) 1429else if (args.Command == ApplicationCommands.Print) 1433else if (args.Command == ApplicationCommands.CancelPrint) 1437else if (args.Command == NavigationCommands.IncreaseZoom) 1441else if (args.Command == NavigationCommands.DecreaseZoom) 1445else if (args.Command == _commandLineDown) 1449else if (args.Command == _commandLineUp) 1453else if (args.Command == _commandLineLeft) 1457else if (args.Command == _commandLineRight) 1461else if (args.Command == NavigationCommands.NextPage) 1465else if (args.Command == NavigationCommands.PreviousPage) 1469else if (args.Command == NavigationCommands.FirstPage) 1473else 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)
2488if (args.Command == ScrollBar.DeferScrollToHorizontalOffsetCommand) 2492else if (args.Command == ScrollBar.DeferScrollToVerticalOffsetCommand) 2496else if (args.Command == ScrollBar.LineLeftCommand) 2500else if (args.Command == ScrollBar.LineRightCommand) 2504else if (args.Command == ScrollBar.PageLeftCommand) 2508else if (args.Command == ScrollBar.PageRightCommand) 2512else if (args.Command == ScrollBar.LineUpCommand) 2516else if (args.Command == ScrollBar.LineDownCommand) 2520else if ( args.Command == ScrollBar.PageUpCommand 2521|| args.Command == ComponentCommands.ScrollPageUp ) 2525else if ( args.Command == ScrollBar.PageDownCommand 2526|| args.Command == ComponentCommands.ScrollPageDown ) 2530else if (args.Command == ScrollBar.ScrollToEndCommand) 2534else if (args.Command == ScrollBar.ScrollToHomeCommand) 2538else if (args.Command == ScrollBar.ScrollToLeftEndCommand) 2542else if (args.Command == ScrollBar.ScrollToRightEndCommand) 2546else if (args.Command == ScrollBar.ScrollToTopCommand) 2550else if (args.Command == ScrollBar.ScrollToBottomCommand) 2554else if (args.Command == ScrollBar.ScrollToHorizontalOffsetCommand) 2558else 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)
1661RoutedCommand 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))