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)
1854if (args.Command == ViewThumbnailsCommand) 1858else if (args.Command == FitToWidthCommand) 1862else if (args.Command == FitToHeightCommand) 1866else if (args.Command == FitToMaxPagesAcrossCommand) 1870else if (args.Command == ApplicationCommands.Find) 1874else if (args.Command == ComponentCommands.ScrollPageUp) 1878else if (args.Command == ComponentCommands.ScrollPageDown) 1882else if (args.Command == ComponentCommands.ScrollPageLeft) 1886else if (args.Command == ComponentCommands.ScrollPageRight) 1890else if (args.Command == ComponentCommands.MoveUp) 1894else if (args.Command == ComponentCommands.MoveDown) 1898else if (args.Command == ComponentCommands.MoveLeft) 1902else if (args.Command == ComponentCommands.MoveRight) 1906else if (args.Command == NavigationCommands.Zoom) 1910else if (args.Command == NavigationCommands.DecreaseZoom) 1914else if (args.Command == NavigationCommands.IncreaseZoom) 1918else if (args.Command == NavigationCommands.PreviousPage) 1922else if (args.Command == NavigationCommands.NextPage) 1926else if (args.Command == NavigationCommands.FirstPage) 1930else if (args.Command == NavigationCommands.LastPage)
System\Windows\Controls\FlowDocumentReader.cs (10)
1441if (args.Command == FlowDocumentReader.SwitchViewingModeCommand) 1445else if (args.Command == ApplicationCommands.Find) 1449else if (args.Command == ApplicationCommands.Print) 1453else if (args.Command == ApplicationCommands.CancelPrint) 1457else if (args.Command == NavigationCommands.IncreaseZoom) 1461else if (args.Command == NavigationCommands.DecreaseZoom) 1465else if (args.Command == NavigationCommands.PreviousPage) 1469else if (args.Command == NavigationCommands.NextPage) 1473else if (args.Command == NavigationCommands.FirstPage) 1477else if (args.Command == NavigationCommands.LastPage)
System\Windows\Controls\FlowDocumentScrollViewer.cs (13)
1453if (args.Command == ApplicationCommands.Find) 1457else if (args.Command == ApplicationCommands.Print) 1461else if (args.Command == ApplicationCommands.CancelPrint) 1465else if (args.Command == NavigationCommands.IncreaseZoom) 1469else if (args.Command == NavigationCommands.DecreaseZoom) 1473else if (args.Command == _commandLineDown) 1480else if (args.Command == _commandLineUp) 1487else if (args.Command == _commandLineLeft) 1494else if (args.Command == _commandLineRight) 1501else if (args.Command == NavigationCommands.NextPage) 1508else if (args.Command == NavigationCommands.PreviousPage) 1515else if (args.Command == NavigationCommands.FirstPage) 1522else if (args.Command == NavigationCommands.LastPage)
System\Windows\Controls\InkCanvas.cs (1)
2703ICommand command = args.Command;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (7)
1524if (args.Command == NavigationCommands.PreviousPage) 1528else if (args.Command == NavigationCommands.NextPage) 1532else if (args.Command == NavigationCommands.FirstPage) 1536else if (args.Command == NavigationCommands.LastPage) 1540else if (args.Command == NavigationCommands.GoToPage) 1562else if (args.Command == ApplicationCommands.Print) 1566else 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)
2497if (args.Command == ScrollBar.DeferScrollToHorizontalOffsetCommand) 2501else if (args.Command == ScrollBar.DeferScrollToVerticalOffsetCommand) 2505else if (args.Command == ScrollBar.LineLeftCommand) 2509else if (args.Command == ScrollBar.LineRightCommand) 2513else if (args.Command == ScrollBar.PageLeftCommand) 2517else if (args.Command == ScrollBar.PageRightCommand) 2521else if (args.Command == ScrollBar.LineUpCommand) 2525else if (args.Command == ScrollBar.LineDownCommand) 2529else if ( args.Command == ScrollBar.PageUpCommand 2530|| args.Command == ComponentCommands.ScrollPageUp ) 2534else if ( args.Command == ScrollBar.PageDownCommand 2535|| args.Command == ComponentCommands.ScrollPageDown ) 2539else if (args.Command == ScrollBar.ScrollToEndCommand) 2543else if (args.Command == ScrollBar.ScrollToHomeCommand) 2547else if (args.Command == ScrollBar.ScrollToLeftEndCommand) 2551else if (args.Command == ScrollBar.ScrollToRightEndCommand) 2555else if (args.Command == ScrollBar.ScrollToTopCommand) 2559else if (args.Command == ScrollBar.ScrollToBottomCommand) 2563else if (args.Command == ScrollBar.ScrollToHorizontalOffsetCommand) 2567else 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)
1694RoutedCommand 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)
1069wasSelectionChanged = HandleEnterBreakForRichText(This, args.Command);
PresentationUI (14)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (14)
1312if ((e != null) && (e.Command != null)) 1315if (e.Command.Equals(ApplicationCommands.Save)) 1328else if (e.Command.Equals(ApplicationCommands.SaveAs)) 1334else if (e.Command.Equals(ApplicationCommands.Properties)) 1340else if (e.Command.Equals(DocumentApplicationDocumentViewer.FocusToolBar)) 1422if ((e != null) && (dv != null) && (e.Command != null)) 1425if (e.Command.Equals(NavigationCommands.FirstPage)) 1430else if (e.Command.Equals(NavigationCommands.LastPage)) 1477if (e.Command.Equals(DocumentApplicationDocumentViewer.Sign)) 1481else if (e.Command.Equals(DocumentApplicationDocumentViewer.RequestSigners)) 1485else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowSignatureSummary)) 1571if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPermissions)) 1575else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMCredentialManager)) 1579else if (e.Command.Equals(DocumentApplicationDocumentViewer.ShowRMPublishingUI))