119 references to Command
PresentationCore (4)
System\Windows\Input\Command\CommandBinding.cs (1)
163CanExecuteRoutedEventArgs canExecuteArgs = new(e.Command, e.Parameter)
System\Windows\Input\Command\CommandManager.cs (3)
486if ((sender != null) && (e != null) && (e.Command != null)) 488FindCommandBinding(sender, e, e.Command, true); 673RoutedCommand command = e.Command as RoutedCommand;
PresentationFramework (101)
System\Windows\Controls\DocumentViewer.cs (20)
1860if (args.Command == ViewThumbnailsCommand) 1864else if (args.Command == FitToWidthCommand) 1868else if (args.Command == FitToHeightCommand) 1872else if (args.Command == FitToMaxPagesAcrossCommand) 1876else if (args.Command == ApplicationCommands.Find) 1880else if (args.Command == ComponentCommands.ScrollPageUp) 1884else if (args.Command == ComponentCommands.ScrollPageDown) 1888else if (args.Command == ComponentCommands.ScrollPageLeft) 1892else if (args.Command == ComponentCommands.ScrollPageRight) 1896else if (args.Command == ComponentCommands.MoveUp) 1900else if (args.Command == ComponentCommands.MoveDown) 1904else if (args.Command == ComponentCommands.MoveLeft) 1908else if (args.Command == ComponentCommands.MoveRight) 1912else if (args.Command == NavigationCommands.Zoom) 1916else if (args.Command == NavigationCommands.DecreaseZoom) 1920else if (args.Command == NavigationCommands.IncreaseZoom) 1924else if (args.Command == NavigationCommands.PreviousPage) 1928else if (args.Command == NavigationCommands.NextPage) 1932else if (args.Command == NavigationCommands.FirstPage) 1936else if (args.Command == NavigationCommands.LastPage)
System\Windows\Controls\FlowDocumentReader.cs (10)
1445if (args.Command == FlowDocumentReader.SwitchViewingModeCommand) 1449else if (args.Command == ApplicationCommands.Find) 1453else if (args.Command == ApplicationCommands.Print) 1457else if (args.Command == ApplicationCommands.CancelPrint) 1461else if (args.Command == NavigationCommands.IncreaseZoom) 1465else if (args.Command == NavigationCommands.DecreaseZoom) 1469else if (args.Command == NavigationCommands.PreviousPage) 1473else if (args.Command == NavigationCommands.NextPage) 1477else if (args.Command == NavigationCommands.FirstPage) 1481else if (args.Command == NavigationCommands.LastPage)
System\Windows\Controls\FlowDocumentScrollViewer.cs (13)
1450if (args.Command == ApplicationCommands.Find) 1454else if (args.Command == ApplicationCommands.Print) 1458else if (args.Command == ApplicationCommands.CancelPrint) 1462else if (args.Command == NavigationCommands.IncreaseZoom) 1466else if (args.Command == NavigationCommands.DecreaseZoom) 1470else if (args.Command == _commandLineDown) 1477else if (args.Command == _commandLineUp) 1484else if (args.Command == _commandLineLeft) 1491else if (args.Command == _commandLineRight) 1498else if (args.Command == NavigationCommands.NextPage) 1505else if (args.Command == NavigationCommands.PreviousPage) 1512else if (args.Command == NavigationCommands.FirstPage) 1519else if (args.Command == NavigationCommands.LastPage)
System\Windows\Controls\InkCanvas.cs (1)
2699ICommand command = args.Command;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (7)
1539if (args.Command == NavigationCommands.PreviousPage) 1543else if (args.Command == NavigationCommands.NextPage) 1547else if (args.Command == NavigationCommands.FirstPage) 1551else if (args.Command == NavigationCommands.LastPage) 1555else if (args.Command == NavigationCommands.GoToPage) 1579else if (args.Command == ApplicationCommands.Print) 1583else if (args.Command == ApplicationCommands.CancelPrint)
System\Windows\Controls\Primitives\ScrollBar.cs (13)
489if (args.Command == ScrollBar.ScrollHereCommand) 498if (args.Command == ScrollBar.LineUpCommand) 502else if (args.Command == ScrollBar.LineDownCommand) 506else if (args.Command == ScrollBar.PageUpCommand) 510else if (args.Command == ScrollBar.PageDownCommand) 514else if (args.Command == ScrollBar.ScrollToTopCommand) 518else if (args.Command == ScrollBar.ScrollToBottomCommand) 525if (args.Command == ScrollBar.LineLeftCommand) 529else if (args.Command == ScrollBar.LineRightCommand) 533else if (args.Command == ScrollBar.PageLeftCommand) 537else if (args.Command == ScrollBar.PageRightCommand) 541else if (args.Command == ScrollBar.ScrollToLeftEndCommand) 545else if (args.Command == ScrollBar.ScrollToRightEndCommand)
System\Windows\Controls\ScrollViewer.cs (20)
2501if (args.Command == ScrollBar.DeferScrollToHorizontalOffsetCommand) 2505else if (args.Command == ScrollBar.DeferScrollToVerticalOffsetCommand) 2509else if (args.Command == ScrollBar.LineLeftCommand) 2513else if (args.Command == ScrollBar.LineRightCommand) 2517else if (args.Command == ScrollBar.PageLeftCommand) 2521else if (args.Command == ScrollBar.PageRightCommand) 2525else if (args.Command == ScrollBar.LineUpCommand) 2529else if (args.Command == ScrollBar.LineDownCommand) 2533else if ( args.Command == ScrollBar.PageUpCommand 2534|| args.Command == ComponentCommands.ScrollPageUp ) 2538else if ( args.Command == ScrollBar.PageDownCommand 2539|| args.Command == ComponentCommands.ScrollPageDown ) 2543else if (args.Command == ScrollBar.ScrollToEndCommand) 2547else if (args.Command == ScrollBar.ScrollToHomeCommand) 2551else if (args.Command == ScrollBar.ScrollToLeftEndCommand) 2555else if (args.Command == ScrollBar.ScrollToRightEndCommand) 2559else if (args.Command == ScrollBar.ScrollToTopCommand) 2563else if (args.Command == ScrollBar.ScrollToBottomCommand) 2567else if (args.Command == ScrollBar.ScrollToHorizontalOffsetCommand) 2571else if (args.Command == ScrollBar.ScrollToVerticalOffsetCommand)
System\Windows\Controls\SinglePageViewer.cs (3)
1323if (args.Command == NavigationCommands.IncreaseZoom) 1327else if (args.Command == NavigationCommands.DecreaseZoom) 1331else if (args.Command == ApplicationCommands.Find)
System\Windows\Controls\StickyNote.cs (1)
1709RoutedCommand command = (RoutedCommand)(args.Command);
System\windows\Documents\TextEditorLists.cs (5)
150if (args.Command == EditingCommands.ToggleBullets) 154else if (args.Command == EditingCommands.ToggleNumbering) 158else if (args.Command == EditingCommands.RemoveListMarkers) 162else if (args.Command == EditingCommands.IncreaseIndentation) 166else if (args.Command == EditingCommands.DecreaseIndentation)
System\windows\Documents\TextEditorTables.cs (7)
84if (args.Command == EditingCommands.InsertTable) 88else if (args.Command == EditingCommands.InsertRows) 92else if (args.Command == EditingCommands.InsertColumns) 96else if (args.Command == EditingCommands.DeleteRows) 100else if (args.Command == EditingCommands.DeleteColumns) 104else if (args.Command == EditingCommands.MergeCells) 108else if (args.Command == EditingCommands.SplitCell)
System\windows\Documents\TextEditorTyping.cs (1)
1078wasSelectionChanged = HandleEnterBreakForRichText(This, args.Command);
PresentationUI (14)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (14)
1305if ((e != null) && (e.Command != null)) 1308if (e.Command.Equals(ApplicationCommands.Save)) 1321else if (e.Command.Equals(ApplicationCommands.SaveAs)) 1327else if (e.Command.Equals(ApplicationCommands.Properties)) 1333else if (e.Command.Equals(DocumentApplicationDocumentViewer.FocusToolBar)) 1415if ((e != null) && (dv != null) && (e.Command != null)) 1418if (e.Command.Equals(NavigationCommands.FirstPage)) 1423else if (e.Command.Equals(NavigationCommands.LastPage)) 1470if (e.Command.Equals(DocumentApplicationDocumentViewer.Sign)) 1474else if (e.Command.Equals(DocumentApplicationDocumentViewer.RequestSigners)) 1478else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowSignatureSummary)) 1564if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPermissions)) 1568else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMCredentialManager)) 1572else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPublishingUI))