102 references to CommandId
PresentationCore (102)
Core\CSharp\System\Windows\Input\Command\ApplicationCommands.cs (102)
50get { return _EnsureCommand(CommandId.Cut); } 58get { return _EnsureCommand(CommandId.Copy); } 66get { return _EnsureCommand(CommandId.Paste); } 74get { return _EnsureCommand(CommandId.Delete); } 82get { return _EnsureCommand(CommandId.Undo); } 90get { return _EnsureCommand(CommandId.Redo); } 98get { return _EnsureCommand(CommandId.Find); } 106get { return _EnsureCommand(CommandId.Replace); } 114get { return _EnsureCommand(CommandId.SelectAll); } 122get { return _EnsureCommand(CommandId.Help); } 130get { return _EnsureCommand(CommandId.New); } 138get { return _EnsureCommand(CommandId.Open); } 146get { return _EnsureCommand(CommandId.Close); } 155get { return _EnsureCommand(CommandId.Save); } 163get { return _EnsureCommand(CommandId.SaveAs); } 171get { return _EnsureCommand(CommandId.Print); } 179get { return _EnsureCommand(CommandId.CancelPrint); } 187get { return _EnsureCommand(CommandId.PrintPreview); } 195get { return _EnsureCommand(CommandId.Properties); } 203get { return _EnsureCommand(CommandId.ContextMenu); } 211get { return _EnsureCommand(CommandId.Stop); } 219get { return _EnsureCommand(CommandId.CorrectionList); } 232get { return _EnsureCommand(CommandId.NotACommand); } 249private static PermissionSet GetRequiredPermissions(CommandId commandId) 261case CommandId.Cut: 262case CommandId.Copy: 263case CommandId.Paste: 276private static string GetPropertyName(CommandId commandId) 282case CommandId.Cut: propertyName = "Cut"; break; 283case CommandId.Copy: propertyName = "Copy"; break; 284case CommandId.Paste: propertyName = "Paste"; break; 285case CommandId.Undo: propertyName = "Undo"; break; 286case CommandId.Redo: propertyName = "Redo"; break; 287case CommandId.Delete: propertyName = "Delete"; break; 288case CommandId.Find: propertyName = "Find"; break; 289case CommandId.Replace: propertyName = "Replace"; break; 290case CommandId.Help: propertyName = "Help"; break; 291case CommandId.New: propertyName = "New"; break; 292case CommandId.Open: propertyName = "Open"; break; 293case CommandId.Save: propertyName = "Save"; break; 294case CommandId.SaveAs: propertyName = "SaveAs"; break; 295case CommandId.Close: propertyName = "Close"; break; 296case CommandId.Print: propertyName = "Print"; break; 297case CommandId.CancelPrint: propertyName = "CancelPrint"; break; 298case CommandId.PrintPreview: propertyName = "PrintPreview"; break; 299case CommandId.Properties: propertyName = "Properties"; break; 300case CommandId.ContextMenu: propertyName = "ContextMenu"; break; 301case CommandId.CorrectionList: propertyName = "CorrectionList"; break; 302case CommandId.SelectAll: propertyName = "SelectAll"; break; 303case CommandId.Stop: propertyName = "Stop"; break; 304case CommandId.NotACommand: propertyName = "NotACommand"; break; 313switch ((CommandId)commandId) 315case CommandId.Cut: uiText = SR.Get(SRID.CutText); break; 316case CommandId.Copy: uiText = SR.Get(SRID.CopyText);break; 317case CommandId.Paste: uiText = SR.Get(SRID.PasteText);break; 318case CommandId.Undo: uiText = SR.Get(SRID.UndoText);break; 319case CommandId.Redo: uiText = SR.Get(SRID.RedoText); break; 320case CommandId.Delete: uiText = SR.Get(SRID.DeleteText); break; 321case CommandId.Find: uiText = SR.Get(SRID.FindText); break; 322case CommandId.Replace: uiText = SR.Get(SRID.ReplaceText); break; 323case CommandId.SelectAll: uiText = SR.Get(SRID.SelectAllText); break; 324case CommandId.Help: uiText = SR.Get(SRID.HelpText); break; 325case CommandId.New: uiText = SR.Get(SRID.NewText); break; 326case CommandId.Open: uiText = SR.Get(SRID.OpenText); break; 327case CommandId.Save: uiText = SR.Get(SRID.SaveText); break; 328case CommandId.SaveAs: uiText = SR.Get(SRID.SaveAsText); break; 329case CommandId.Print: uiText = SR.Get(SRID.PrintText); break; 330case CommandId.CancelPrint: uiText = SR.Get(SRID.CancelPrintText); break; 331case CommandId.PrintPreview: uiText = SR.Get(SRID.PrintPreviewText); break; 332case CommandId.Close: uiText = SR.Get(SRID.CloseText); break; 333case CommandId.ContextMenu: uiText = SR.Get(SRID.ContextMenuText); break; 334case CommandId.CorrectionList: uiText = SR.Get(SRID.CorrectionListText); break; 335case CommandId.Properties: uiText = SR.Get(SRID.PropertiesText); break; 336case CommandId.Stop: uiText = SR.Get(SRID.StopText); break; 337case CommandId.NotACommand: uiText = SR.Get(SRID.NotACommandText); break; 348switch ((CommandId)commandId) 350case CommandId.Cut: 356case CommandId.Copy: 362case CommandId.Paste: 368case CommandId.Undo: 374case CommandId.Redo: 380case CommandId.Delete: 386case CommandId.Find: 392case CommandId.Replace: 398case CommandId.SelectAll: 404case CommandId.Help: 410case CommandId.New: 416case CommandId.Open: 422case CommandId.Save: 428case CommandId.SaveAs: 430case CommandId.Print: 436case CommandId.CancelPrint: 438case CommandId.PrintPreview: 444case CommandId.Close: 446case CommandId.ContextMenu: 452case CommandId.CorrectionList: 458case CommandId.Properties: 464case CommandId.Stop: 470case CommandId.NotACommand: 477private static RoutedUICommand _EnsureCommand(CommandId idCommand) 479if (idCommand >= 0 && idCommand < CommandId.Last) 536private static RoutedUICommand[] _internalCommands = new RoutedUICommand[(int)CommandId.Last];