119 references to Command
PresentationCore (4)
System\Windows\Input\Command\CommandBinding.cs (1)
155CanExecuteRoutedEventArgs canExecuteArgs = new(e.Command, e.Parameter)
System\Windows\Input\Command\CommandManager.cs (3)
475if ((sender != null) && (e != null) && (e.Command != null)) 477FindCommandBinding(sender, e, e.Command, true); 666RoutedCommand command = e.Command as RoutedCommand;
PresentationFramework (101)
System\Windows\Controls\DocumentViewer.cs (20)
1800if (args.Command == ViewThumbnailsCommand) 1804else if (args.Command == FitToWidthCommand) 1808else if (args.Command == FitToHeightCommand) 1812else if (args.Command == FitToMaxPagesAcrossCommand) 1816else if (args.Command == ApplicationCommands.Find) 1820else if (args.Command == ComponentCommands.ScrollPageUp) 1824else if (args.Command == ComponentCommands.ScrollPageDown) 1828else if (args.Command == ComponentCommands.ScrollPageLeft) 1832else if (args.Command == ComponentCommands.ScrollPageRight) 1836else if (args.Command == ComponentCommands.MoveUp) 1840else if (args.Command == ComponentCommands.MoveDown) 1844else if (args.Command == ComponentCommands.MoveLeft) 1848else if (args.Command == ComponentCommands.MoveRight) 1852else if (args.Command == NavigationCommands.Zoom) 1856else if (args.Command == NavigationCommands.DecreaseZoom) 1860else if (args.Command == NavigationCommands.IncreaseZoom) 1864else if (args.Command == NavigationCommands.PreviousPage) 1868else if (args.Command == NavigationCommands.NextPage) 1872else if (args.Command == NavigationCommands.FirstPage) 1876else if (args.Command == NavigationCommands.LastPage)
System\Windows\Controls\FlowDocumentReader.cs (10)
1429if (args.Command == FlowDocumentReader.SwitchViewingModeCommand) 1433else if (args.Command == ApplicationCommands.Find) 1437else if (args.Command == ApplicationCommands.Print) 1441else if (args.Command == ApplicationCommands.CancelPrint) 1445else if (args.Command == NavigationCommands.IncreaseZoom) 1449else if (args.Command == NavigationCommands.DecreaseZoom) 1453else if (args.Command == NavigationCommands.PreviousPage) 1457else if (args.Command == NavigationCommands.NextPage) 1461else if (args.Command == NavigationCommands.FirstPage) 1465else if (args.Command == NavigationCommands.LastPage)
System\Windows\Controls\FlowDocumentScrollViewer.cs (13)
1438if (args.Command == ApplicationCommands.Find) 1442else if (args.Command == ApplicationCommands.Print) 1446else if (args.Command == ApplicationCommands.CancelPrint) 1450else if (args.Command == NavigationCommands.IncreaseZoom) 1454else if (args.Command == NavigationCommands.DecreaseZoom) 1458else if (args.Command == _commandLineDown) 1462else if (args.Command == _commandLineUp) 1466else if (args.Command == _commandLineLeft) 1470else if (args.Command == _commandLineRight) 1474else if (args.Command == NavigationCommands.NextPage) 1478else if (args.Command == NavigationCommands.PreviousPage) 1482else if (args.Command == NavigationCommands.FirstPage) 1486else if (args.Command == NavigationCommands.LastPage)
System\Windows\Controls\InkCanvas.cs (1)
2703ICommand command = args.Command;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (7)
1506if (args.Command == NavigationCommands.PreviousPage) 1510else if (args.Command == NavigationCommands.NextPage) 1514else if (args.Command == NavigationCommands.FirstPage) 1518else if (args.Command == NavigationCommands.LastPage) 1522else if (args.Command == NavigationCommands.GoToPage) 1544else if (args.Command == ApplicationCommands.Print) 1548else if (args.Command == ApplicationCommands.CancelPrint)
System\Windows\Controls\Primitives\ScrollBar.cs (13)
475if (args.Command == ScrollBar.ScrollHereCommand) 484if (args.Command == ScrollBar.LineUpCommand) 488else if (args.Command == ScrollBar.LineDownCommand) 492else if (args.Command == ScrollBar.PageUpCommand) 496else if (args.Command == ScrollBar.PageDownCommand) 500else if (args.Command == ScrollBar.ScrollToTopCommand) 504else if (args.Command == ScrollBar.ScrollToBottomCommand) 511if (args.Command == ScrollBar.LineLeftCommand) 515else if (args.Command == ScrollBar.LineRightCommand) 519else if (args.Command == ScrollBar.PageLeftCommand) 523else if (args.Command == ScrollBar.PageRightCommand) 527else if (args.Command == ScrollBar.ScrollToLeftEndCommand) 531else if (args.Command == ScrollBar.ScrollToRightEndCommand)
System\Windows\Controls\ScrollViewer.cs (20)
2491if (args.Command == ScrollBar.DeferScrollToHorizontalOffsetCommand) 2495else if (args.Command == ScrollBar.DeferScrollToVerticalOffsetCommand) 2499else if (args.Command == ScrollBar.LineLeftCommand) 2503else if (args.Command == ScrollBar.LineRightCommand) 2507else if (args.Command == ScrollBar.PageLeftCommand) 2511else if (args.Command == ScrollBar.PageRightCommand) 2515else if (args.Command == ScrollBar.LineUpCommand) 2519else if (args.Command == ScrollBar.LineDownCommand) 2523else if ( args.Command == ScrollBar.PageUpCommand 2524|| args.Command == ComponentCommands.ScrollPageUp ) 2528else if ( args.Command == ScrollBar.PageDownCommand 2529|| args.Command == ComponentCommands.ScrollPageDown ) 2533else if (args.Command == ScrollBar.ScrollToEndCommand) 2537else if (args.Command == ScrollBar.ScrollToHomeCommand) 2541else if (args.Command == ScrollBar.ScrollToLeftEndCommand) 2545else if (args.Command == ScrollBar.ScrollToRightEndCommand) 2549else if (args.Command == ScrollBar.ScrollToTopCommand) 2553else if (args.Command == ScrollBar.ScrollToBottomCommand) 2557else if (args.Command == ScrollBar.ScrollToHorizontalOffsetCommand) 2561else if (args.Command == ScrollBar.ScrollToVerticalOffsetCommand)
System\Windows\Controls\SinglePageViewer.cs (3)
1322if (args.Command == NavigationCommands.IncreaseZoom) 1326else if (args.Command == NavigationCommands.DecreaseZoom) 1330else if (args.Command == ApplicationCommands.Find)
System\Windows\Controls\StickyNote.cs (1)
1668RoutedCommand command = (RoutedCommand)(args.Command);
System\windows\Documents\TextEditorLists.cs (5)
134if (args.Command == EditingCommands.ToggleBullets) 138else if (args.Command == EditingCommands.ToggleNumbering) 142else if (args.Command == EditingCommands.RemoveListMarkers) 146else if (args.Command == EditingCommands.IncreaseIndentation) 150else if (args.Command == EditingCommands.DecreaseIndentation)
System\windows\Documents\TextEditorTables.cs (7)
67if (args.Command == EditingCommands.InsertTable) 71else if (args.Command == EditingCommands.InsertRows) 75else if (args.Command == EditingCommands.InsertColumns) 79else if (args.Command == EditingCommands.DeleteRows) 83else if (args.Command == EditingCommands.DeleteColumns) 87else if (args.Command == EditingCommands.MergeCells) 91else if (args.Command == EditingCommands.SplitCell)
System\windows\Documents\TextEditorTyping.cs (1)
1060wasSelectionChanged = HandleEnterBreakForRichText(This, args.Command);
PresentationUI (14)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (14)
1309if ((e != null) && (e.Command != null)) 1312if (e.Command.Equals(ApplicationCommands.Save)) 1325else if (e.Command.Equals(ApplicationCommands.SaveAs)) 1331else if (e.Command.Equals(ApplicationCommands.Properties)) 1337else if (e.Command.Equals(DocumentApplicationDocumentViewer.FocusToolBar)) 1419if ((e != null) && (dv != null) && (e.Command != null)) 1422if (e.Command.Equals(NavigationCommands.FirstPage)) 1427else if (e.Command.Equals(NavigationCommands.LastPage)) 1474if (e.Command.Equals(DocumentApplicationDocumentViewer.Sign)) 1478else if (e.Command.Equals(DocumentApplicationDocumentViewer.RequestSigners)) 1482else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowSignatureSummary)) 1568if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPermissions)) 1572else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMCredentialManager)) 1576else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPublishingUI))