136 references to ApplicationCommands
Microsoft.VisualStudio.LanguageServices (1)
StackTraceExplorer\StackTraceExplorerToolWindow.cs (1)
47dockPanel.CommandBindings.Add(new CommandBinding(ApplicationCommands.Paste, (s, e) =>
PresentationCore (19)
System\Windows\Input\Command\ApplicationCommands.cs (1)
436typeof(ApplicationCommands), (byte)idCommand);
System\Windows\Input\Command\CommandDevice.cs (13)
197appCommand = ApplicationCommands.Help; 200appCommand = ApplicationCommands.Find; 203appCommand = ApplicationCommands.New; 206appCommand = ApplicationCommands.Open; 209appCommand = ApplicationCommands.Close; 212appCommand = ApplicationCommands.Save; 215appCommand = ApplicationCommands.Print; 218appCommand = ApplicationCommands.Undo; 221appCommand = ApplicationCommands.Redo; 224appCommand = ApplicationCommands.Copy; 227appCommand = ApplicationCommands.Cut; 230appCommand = ApplicationCommands.Paste; 242appCommand = ApplicationCommands.CorrectionList;
System\Windows\Input\Command\CommandManager.cs (1)
387if (command != null && command != ApplicationCommands.NotACommand)
System\Windows\Input\Command\RoutedCommand.cs (2)
245if(OwnerType == typeof(ApplicationCommands)) 247return ApplicationCommands.LoadDefaultGestureFromResource(_commandId);
System\Windows\Input\Command\RoutedUICommand.cs (2)
89if(OwnerType == typeof(ApplicationCommands)) 91return ApplicationCommands.GetUIText(CommandId);
PresentationFramework (101)
MS\Internal\Documents\DocumentGridContextMenu.cs (3)
147SetMenuProperties(new EditorMenuItem(), dg, ApplicationCommands.Copy); // Copy will be marked as user initiated 150SetMenuProperties(new MenuItem(), dg, ApplicationCommands.SelectAll); 184SetMenuProperties(new MenuItem(), dg, ApplicationCommands.Print);
System\Windows\Controls\DataGrid.cs (3)
70CommandManager.RegisterClassCommandBinding(typeof(DataGrid), new CommandBinding(ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnExecutedCopy), new CanExecuteRoutedEventHandler(OnCanExecuteCopy))); 2077return ApplicationCommands.Delete; 4329return ApplicationCommands.SelectAll;
System\Windows\Controls\DocumentViewer.cs (3)
1540ApplicationCommands.Find, 1760else if (args.Command == ApplicationCommands.Find) 1870else if (args.Command == ApplicationCommands.Find)
System\Windows\Controls\FlowDocumentReader.cs (12)
1336CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader), ApplicationCommands.Find, 1340CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader), ApplicationCommands.Print, 1344CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentReader), ApplicationCommands.CancelPrint, 1407else if (args.Command == ApplicationCommands.Find) 1411else if (args.Command == ApplicationCommands.Print) 1415else if (args.Command == ApplicationCommands.CancelPrint) 1426args.CanExecute = (args.Command == ApplicationCommands.CancelPrint); 1445else if (args.Command == ApplicationCommands.Find) 1449else if (args.Command == ApplicationCommands.Print) 1453else if (args.Command == ApplicationCommands.CancelPrint) 1606if (args.Command == ApplicationCommands.Find) 1612else if (args.Command == ApplicationCommands.Print)
System\Windows\Controls\FlowDocumentScrollViewer.cs (10)
1345CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer), ApplicationCommands.Find, 1349CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer), ApplicationCommands.Print, 1353CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentScrollViewer), ApplicationCommands.CancelPrint, 1416if (args.Command == ApplicationCommands.Find) 1420else if (args.Command == ApplicationCommands.Print) 1424else if (args.Command == ApplicationCommands.CancelPrint) 1435args.CanExecute = (args.Command == ApplicationCommands.CancelPrint); 1453if (args.Command == ApplicationCommands.Find) 1457else if (args.Command == ApplicationCommands.Print) 1461else if (args.Command == ApplicationCommands.CancelPrint)
System\Windows\Controls\InkCanvas.cs (18)
74CommandHelpers.RegisterCommandHandler(ownerType, ApplicationCommands.Delete, 77CommandHelpers.RegisterCommandHandler(ownerType, ApplicationCommands.SelectAll, 2470CommandHelpers.RegisterCommandHandler(ownerType, ApplicationCommands.Cut, 2473CommandHelpers.RegisterCommandHandler(ownerType, ApplicationCommands.Copy, 2482CommandHelpers.RegisterCommandHandler(ownerType, ApplicationCommands.Paste, 2710if ( command == ApplicationCommands.Delete ) 2714else if ( command == ApplicationCommands.Cut ) 2718else if ( command == ApplicationCommands.Copy ) 2722else if ( command == ApplicationCommands.SelectAll ) 2742else if ( command == ApplicationCommands.Paste ) 2786if ( command == ApplicationCommands.Delete 2787|| command == ApplicationCommands.Cut 2788|| command == ApplicationCommands.Copy 2793else if ( command == ApplicationCommands.Paste ) 2808else if ( command == ApplicationCommands.SelectAll ) 2824if ( command == ApplicationCommands.Cut || command == ApplicationCommands.Copy 2825|| command == ApplicationCommands.Paste )
System\Windows\Controls\PasswordBox.cs (1)
108RoutedCommand command = ApplicationCommands.Paste;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (6)
1469CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase), ApplicationCommands.Print, 1473CommandHelpers.RegisterCommandHandler(typeof(DocumentViewerBase), ApplicationCommands.CancelPrint, 1495if (args.Command == ApplicationCommands.Print) 1500else if (args.Command == ApplicationCommands.CancelPrint) 1562else if (args.Command == ApplicationCommands.Print) 1566else if (args.Command == ApplicationCommands.CancelPrint)
System\Windows\Controls\SinglePageViewer.cs (4)
1260CommandHelpers.RegisterCommandHandler(typeof(FlowDocumentPageViewer), ApplicationCommands.Find, 1298if (args.Command == ApplicationCommands.Find) 1330else if (args.Command == ApplicationCommands.Find) 1352if (args.Command != ApplicationCommands.CancelPrint)
System\Windows\Documents\RubberbandSelector.cs (2)
69CommandBinding binding = new CommandBinding(ApplicationCommands.Copy); 98if (binding.Command == ApplicationCommands.Copy)
System\windows\Documents\TextEditor.cs (2)
396CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Undo, new ExecutedRoutedEventHandler(OnUndo), new CanExecuteRoutedEventHandler(OnQueryStatusUndo), KeyGesture.CreateFromResourceStrings(KeyUndo, SR.KeyUndoDisplayString), KeyGesture.CreateFromResourceStrings(KeyAltUndo, SR.KeyAltUndoDisplayString)); 397CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Redo, new ExecutedRoutedEventHandler(OnRedo), new CanExecuteRoutedEventHandler(OnQueryStatusRedo), KeyGesture.CreateFromResourceStrings(KeyRedo, nameof(SR.KeyRedoDisplayString)));
System\windows\Documents\TextEditorContextMenu.cs (4)
599Command = ApplicationCommands.CorrectionList 618Command = ApplicationCommands.Cut 626Command = ApplicationCommands.Copy 634Command = ApplicationCommands.Paste
System\windows\Documents\TextEditorCopyPaste.cs (3)
37CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnCopy), new CanExecuteRoutedEventHandler(OnQueryStatusCopy), KeyGesture.CreateFromResourceStrings(KeyCopy, SR.KeyCopyDisplayString), KeyGesture.CreateFromResourceStrings(KeyCtrlInsert, SR.KeyCtrlInsertDisplayString)); 44CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Cut, new ExecutedRoutedEventHandler(OnCut), new CanExecuteRoutedEventHandler(OnQueryStatusCut), KeyGesture.CreateFromResourceStrings(KeyCut, SR.KeyCutDisplayString), KeyGesture.CreateFromResourceStrings(KeyShiftDelete, SR.KeyShiftDeleteDisplayString)); 49CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Paste, ExecutedRoutedEventHandler, CanExecuteRoutedEventHandler, inputGesture);
System\windows\Documents\TextEditorSelection.cs (1)
41CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.SelectAll, new ExecutedRoutedEventHandler(OnSelectAll), queryStatusKeyboardSelectionHandler, KeySelectAll, nameof(SR.KeySelectAllDisplayString));
System\windows\Documents\TextEditorTyping.cs (1)
69CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.CorrectionList , new ExecutedRoutedEventHandler(OnCorrectionList) , new CanExecuteRoutedEventHandler(OnQueryStatusCorrectionList) , nameof(SR.KeyCorrectionList), nameof(SR.KeyCorrectionListDisplayString) );
System\Windows\FrameworkCompatibilityPreferences.cs (2)
359/// the application would take control of handling <see cref="System.Windows.Input.ApplicationCommands.Cut"/> 360/// and <see cref="System.Windows.Input.ApplicationCommands.Copy"/> RoutedUICommands through a
System\Windows\Input\Command\CommandConverter.cs (26)
197if (commandType == typeof(ApplicationCommands) || 301if (ownerType == typeof(ApplicationCommands) || ((null == knownCommand) && searchAll)) 306knownCommand = ApplicationCommands.Cut; 309knownCommand = ApplicationCommands.Copy; 312knownCommand = ApplicationCommands.Paste; 315knownCommand = ApplicationCommands.Undo; 318knownCommand = ApplicationCommands.Redo; 321knownCommand = ApplicationCommands.Delete; 324knownCommand = ApplicationCommands.Find; 327knownCommand = ApplicationCommands.Replace; 330knownCommand = ApplicationCommands.Help; 333knownCommand = ApplicationCommands.New; 336knownCommand = ApplicationCommands.Open; 339knownCommand = ApplicationCommands.Save; 342knownCommand = ApplicationCommands.SaveAs; 345knownCommand = ApplicationCommands.Close; 348knownCommand = ApplicationCommands.Print; 351knownCommand = ApplicationCommands.CancelPrint; 354knownCommand = ApplicationCommands.PrintPreview; 357knownCommand = ApplicationCommands.Properties; 360knownCommand = ApplicationCommands.ContextMenu; 363knownCommand = ApplicationCommands.CorrectionList; 366knownCommand = ApplicationCommands.SelectAll; 369knownCommand = ApplicationCommands.Stop; 372knownCommand = ApplicationCommands.NotACommand; 743VerifyCommandDoesntExist( typeof(ApplicationCommands), localName );
PresentationUI (15)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (15)
1315if (e.Command.Equals(ApplicationCommands.Save)) 1328else if (e.Command.Equals(ApplicationCommands.SaveAs)) 1334else if (e.Command.Equals(ApplicationCommands.Properties)) 1370if (e.Command.Equals(ApplicationCommands.Save)) 1385else if (e.Command.Equals(ApplicationCommands.SaveAs)) 1393else if (e.Command.Equals(ApplicationCommands.Properties)) 2061BindCommand(ApplicationCommands.Save, executeHandler, queryEnabledHandler); 2066BindCommand(ApplicationCommands.SaveAs, executeHandler, queryEnabledHandler); 2071BindCommand(ApplicationCommands.Properties, executeHandler, queryEnabledHandler); 2152enforcer.AddBinding(new PolicyBinding(ApplicationCommands.Print, RightsManagementPolicy.AllowPrint)); 2153enforcer.AddBinding(new PolicyBinding(ApplicationCommands.PrintPreview, RightsManagementPolicy.AllowPrint)); 2156enforcer.AddBinding(new PolicyBinding(ApplicationCommands.Copy, RightsManagementPolicy.AllowCopy)); 2157enforcer.AddBinding(new PolicyBinding(ApplicationCommands.Cut, RightsManagementPolicy.AllowCopy)); 2158enforcer.AddBinding(new PolicyBinding(ApplicationCommands.Save, RightsManagementPolicy.AllowCopy)); 2159enforcer.AddBinding(new PolicyBinding(ApplicationCommands.SaveAs, RightsManagementPolicy.AllowCopy));