98 references to CommandId
PresentationCore (98)
System\Windows\Input\Command\ApplicationCommands.cs (98)
30get { return _EnsureCommand(CommandId.Cut); } 38get { return _EnsureCommand(CommandId.Copy); } 46get { return _EnsureCommand(CommandId.Paste); } 54get { return _EnsureCommand(CommandId.Delete); } 62get { return _EnsureCommand(CommandId.Undo); } 70get { return _EnsureCommand(CommandId.Redo); } 78get { return _EnsureCommand(CommandId.Find); } 86get { return _EnsureCommand(CommandId.Replace); } 94get { return _EnsureCommand(CommandId.SelectAll); } 102get { return _EnsureCommand(CommandId.Help); } 110get { return _EnsureCommand(CommandId.New); } 118get { return _EnsureCommand(CommandId.Open); } 126get { return _EnsureCommand(CommandId.Close); } 135get { return _EnsureCommand(CommandId.Save); } 143get { return _EnsureCommand(CommandId.SaveAs); } 151get { return _EnsureCommand(CommandId.Print); } 159get { return _EnsureCommand(CommandId.CancelPrint); } 167get { return _EnsureCommand(CommandId.PrintPreview); } 175get { return _EnsureCommand(CommandId.Properties); } 183get { return _EnsureCommand(CommandId.ContextMenu); } 191get { return _EnsureCommand(CommandId.Stop); } 199get { return _EnsureCommand(CommandId.CorrectionList); } 212get { return _EnsureCommand(CommandId.NotACommand); } 224private static string GetPropertyName(CommandId commandId) 230case CommandId.Cut: propertyName = "Cut"; break; 231case CommandId.Copy: propertyName = "Copy"; break; 232case CommandId.Paste: propertyName = "Paste"; break; 233case CommandId.Undo: propertyName = "Undo"; break; 234case CommandId.Redo: propertyName = "Redo"; break; 235case CommandId.Delete: propertyName = "Delete"; break; 236case CommandId.Find: propertyName = "Find"; break; 237case CommandId.Replace: propertyName = "Replace"; break; 238case CommandId.Help: propertyName = "Help"; break; 239case CommandId.New: propertyName = "New"; break; 240case CommandId.Open: propertyName = "Open"; break; 241case CommandId.Save: propertyName = "Save"; break; 242case CommandId.SaveAs: propertyName = "SaveAs"; break; 243case CommandId.Close: propertyName = "Close"; break; 244case CommandId.Print: propertyName = "Print"; break; 245case CommandId.CancelPrint: propertyName = "CancelPrint"; break; 246case CommandId.PrintPreview: propertyName = "PrintPreview"; break; 247case CommandId.Properties: propertyName = "Properties"; break; 248case CommandId.ContextMenu: propertyName = "ContextMenu"; break; 249case CommandId.CorrectionList: propertyName = "CorrectionList"; break; 250case CommandId.SelectAll: propertyName = "SelectAll"; break; 251case CommandId.Stop: propertyName = "Stop"; break; 252case CommandId.NotACommand: propertyName = "NotACommand"; break; 261switch ((CommandId)commandId) 263case CommandId.Cut: uiText = SR.CutText; break; 264case CommandId.Copy: uiText = SR.CopyText;break; 265case CommandId.Paste: uiText = SR.PasteText;break; 266case CommandId.Undo: uiText = SR.UndoText;break; 267case CommandId.Redo: uiText = SR.RedoText; break; 268case CommandId.Delete: uiText = SR.DeleteText; break; 269case CommandId.Find: uiText = SR.FindText; break; 270case CommandId.Replace: uiText = SR.ReplaceText; break; 271case CommandId.SelectAll: uiText = SR.SelectAllText; break; 272case CommandId.Help: uiText = SR.HelpText; break; 273case CommandId.New: uiText = SR.NewText; break; 274case CommandId.Open: uiText = SR.OpenText; break; 275case CommandId.Save: uiText = SR.SaveText; break; 276case CommandId.SaveAs: uiText = SR.SaveAsText; break; 277case CommandId.Print: uiText = SR.PrintText; break; 278case CommandId.CancelPrint: uiText = SR.CancelPrintText; break; 279case CommandId.PrintPreview: uiText = SR.PrintPreviewText; break; 280case CommandId.Close: uiText = SR.CloseText; break; 281case CommandId.ContextMenu: uiText = SR.ContextMenuText; break; 282case CommandId.CorrectionList: uiText = SR.CorrectionListText; break; 283case CommandId.Properties: uiText = SR.PropertiesText; break; 284case CommandId.Stop: uiText = SR.StopText; break; 285case CommandId.NotACommand: uiText = SR.NotACommandText; break; 296switch ((CommandId)commandId) 298case CommandId.Cut: 304case CommandId.Copy: 310case CommandId.Paste: 316case CommandId.Undo: 322case CommandId.Redo: 328case CommandId.Delete: 334case CommandId.Find: 340case CommandId.Replace: 346case CommandId.SelectAll: 352case CommandId.Help: 358case CommandId.New: 364case CommandId.Open: 370case CommandId.Save: 376case CommandId.SaveAs: 378case CommandId.Print: 384case CommandId.CancelPrint: 386case CommandId.PrintPreview: 392case CommandId.Close: 394case CommandId.ContextMenu: 400case CommandId.CorrectionList: 406case CommandId.Properties: 412case CommandId.Stop: 418case CommandId.NotACommand: 425private static RoutedUICommand _EnsureCommand(CommandId idCommand) 427if (idCommand >= 0 && idCommand < CommandId.Last) 483private static RoutedUICommand[] _internalCommands = new RoutedUICommand[(int)CommandId.Last];