98 references to CommandId
PresentationCore (98)
System\Windows\Input\Command\ApplicationCommands.cs (98)
44get { return _EnsureCommand(CommandId.Cut); } 52get { return _EnsureCommand(CommandId.Copy); } 60get { return _EnsureCommand(CommandId.Paste); } 68get { return _EnsureCommand(CommandId.Delete); } 76get { return _EnsureCommand(CommandId.Undo); } 84get { return _EnsureCommand(CommandId.Redo); } 92get { return _EnsureCommand(CommandId.Find); } 100get { return _EnsureCommand(CommandId.Replace); } 108get { return _EnsureCommand(CommandId.SelectAll); } 116get { return _EnsureCommand(CommandId.Help); } 124get { return _EnsureCommand(CommandId.New); } 132get { return _EnsureCommand(CommandId.Open); } 140get { return _EnsureCommand(CommandId.Close); } 149get { return _EnsureCommand(CommandId.Save); } 157get { return _EnsureCommand(CommandId.SaveAs); } 165get { return _EnsureCommand(CommandId.Print); } 173get { return _EnsureCommand(CommandId.CancelPrint); } 181get { return _EnsureCommand(CommandId.PrintPreview); } 189get { return _EnsureCommand(CommandId.Properties); } 197get { return _EnsureCommand(CommandId.ContextMenu); } 205get { return _EnsureCommand(CommandId.Stop); } 213get { return _EnsureCommand(CommandId.CorrectionList); } 226get { return _EnsureCommand(CommandId.NotACommand); } 238private static string GetPropertyName(CommandId commandId) 244case CommandId.Cut: propertyName = "Cut"; break; 245case CommandId.Copy: propertyName = "Copy"; break; 246case CommandId.Paste: propertyName = "Paste"; break; 247case CommandId.Undo: propertyName = "Undo"; break; 248case CommandId.Redo: propertyName = "Redo"; break; 249case CommandId.Delete: propertyName = "Delete"; break; 250case CommandId.Find: propertyName = "Find"; break; 251case CommandId.Replace: propertyName = "Replace"; break; 252case CommandId.Help: propertyName = "Help"; break; 253case CommandId.New: propertyName = "New"; break; 254case CommandId.Open: propertyName = "Open"; break; 255case CommandId.Save: propertyName = "Save"; break; 256case CommandId.SaveAs: propertyName = "SaveAs"; break; 257case CommandId.Close: propertyName = "Close"; break; 258case CommandId.Print: propertyName = "Print"; break; 259case CommandId.CancelPrint: propertyName = "CancelPrint"; break; 260case CommandId.PrintPreview: propertyName = "PrintPreview"; break; 261case CommandId.Properties: propertyName = "Properties"; break; 262case CommandId.ContextMenu: propertyName = "ContextMenu"; break; 263case CommandId.CorrectionList: propertyName = "CorrectionList"; break; 264case CommandId.SelectAll: propertyName = "SelectAll"; break; 265case CommandId.Stop: propertyName = "Stop"; break; 266case CommandId.NotACommand: propertyName = "NotACommand"; break; 275switch ((CommandId)commandId) 277case CommandId.Cut: uiText = SR.CutText; break; 278case CommandId.Copy: uiText = SR.CopyText;break; 279case CommandId.Paste: uiText = SR.PasteText;break; 280case CommandId.Undo: uiText = SR.UndoText;break; 281case CommandId.Redo: uiText = SR.RedoText; break; 282case CommandId.Delete: uiText = SR.DeleteText; break; 283case CommandId.Find: uiText = SR.FindText; break; 284case CommandId.Replace: uiText = SR.ReplaceText; break; 285case CommandId.SelectAll: uiText = SR.SelectAllText; break; 286case CommandId.Help: uiText = SR.HelpText; break; 287case CommandId.New: uiText = SR.NewText; break; 288case CommandId.Open: uiText = SR.OpenText; break; 289case CommandId.Save: uiText = SR.SaveText; break; 290case CommandId.SaveAs: uiText = SR.SaveAsText; break; 291case CommandId.Print: uiText = SR.PrintText; break; 292case CommandId.CancelPrint: uiText = SR.CancelPrintText; break; 293case CommandId.PrintPreview: uiText = SR.PrintPreviewText; break; 294case CommandId.Close: uiText = SR.CloseText; break; 295case CommandId.ContextMenu: uiText = SR.ContextMenuText; break; 296case CommandId.CorrectionList: uiText = SR.CorrectionListText; break; 297case CommandId.Properties: uiText = SR.PropertiesText; break; 298case CommandId.Stop: uiText = SR.StopText; break; 299case CommandId.NotACommand: uiText = SR.NotACommandText; break; 310switch ((CommandId)commandId) 312case CommandId.Cut: 318case CommandId.Copy: 324case CommandId.Paste: 330case CommandId.Undo: 336case CommandId.Redo: 342case CommandId.Delete: 348case CommandId.Find: 354case CommandId.Replace: 360case CommandId.SelectAll: 366case CommandId.Help: 372case CommandId.New: 378case CommandId.Open: 384case CommandId.Save: 390case CommandId.SaveAs: 392case CommandId.Print: 398case CommandId.CancelPrint: 400case CommandId.PrintPreview: 406case CommandId.Close: 408case CommandId.ContextMenu: 414case CommandId.CorrectionList: 420case CommandId.Properties: 426case CommandId.Stop: 432case CommandId.NotACommand: 439private static RoutedUICommand _EnsureCommand(CommandId idCommand) 441if (idCommand >= 0 && idCommand < CommandId.Last) 497private static RoutedUICommand[] _internalCommands = new RoutedUICommand[(int)CommandId.Last];