98 references to CommandId
PresentationCore (98)
System\Windows\Input\Command\ApplicationCommands.cs (98)
31get { return _EnsureCommand(CommandId.Cut); } 39get { return _EnsureCommand(CommandId.Copy); } 47get { return _EnsureCommand(CommandId.Paste); } 55get { return _EnsureCommand(CommandId.Delete); } 63get { return _EnsureCommand(CommandId.Undo); } 71get { return _EnsureCommand(CommandId.Redo); } 79get { return _EnsureCommand(CommandId.Find); } 87get { return _EnsureCommand(CommandId.Replace); } 95get { return _EnsureCommand(CommandId.SelectAll); } 103get { return _EnsureCommand(CommandId.Help); } 111get { return _EnsureCommand(CommandId.New); } 119get { return _EnsureCommand(CommandId.Open); } 127get { return _EnsureCommand(CommandId.Close); } 136get { return _EnsureCommand(CommandId.Save); } 144get { return _EnsureCommand(CommandId.SaveAs); } 152get { return _EnsureCommand(CommandId.Print); } 160get { return _EnsureCommand(CommandId.CancelPrint); } 168get { return _EnsureCommand(CommandId.PrintPreview); } 176get { return _EnsureCommand(CommandId.Properties); } 184get { return _EnsureCommand(CommandId.ContextMenu); } 192get { return _EnsureCommand(CommandId.Stop); } 200get { return _EnsureCommand(CommandId.CorrectionList); } 213get { return _EnsureCommand(CommandId.NotACommand); } 225private static string GetPropertyName(CommandId commandId) 231case CommandId.Cut: propertyName = "Cut"; break; 232case CommandId.Copy: propertyName = "Copy"; break; 233case CommandId.Paste: propertyName = "Paste"; break; 234case CommandId.Undo: propertyName = "Undo"; break; 235case CommandId.Redo: propertyName = "Redo"; break; 236case CommandId.Delete: propertyName = "Delete"; break; 237case CommandId.Find: propertyName = "Find"; break; 238case CommandId.Replace: propertyName = "Replace"; break; 239case CommandId.Help: propertyName = "Help"; break; 240case CommandId.New: propertyName = "New"; break; 241case CommandId.Open: propertyName = "Open"; break; 242case CommandId.Save: propertyName = "Save"; break; 243case CommandId.SaveAs: propertyName = "SaveAs"; break; 244case CommandId.Close: propertyName = "Close"; break; 245case CommandId.Print: propertyName = "Print"; break; 246case CommandId.CancelPrint: propertyName = "CancelPrint"; break; 247case CommandId.PrintPreview: propertyName = "PrintPreview"; break; 248case CommandId.Properties: propertyName = "Properties"; break; 249case CommandId.ContextMenu: propertyName = "ContextMenu"; break; 250case CommandId.CorrectionList: propertyName = "CorrectionList"; break; 251case CommandId.SelectAll: propertyName = "SelectAll"; break; 252case CommandId.Stop: propertyName = "Stop"; break; 253case CommandId.NotACommand: propertyName = "NotACommand"; break; 262switch ((CommandId)commandId) 264case CommandId.Cut: uiText = SR.CutText; break; 265case CommandId.Copy: uiText = SR.CopyText;break; 266case CommandId.Paste: uiText = SR.PasteText;break; 267case CommandId.Undo: uiText = SR.UndoText;break; 268case CommandId.Redo: uiText = SR.RedoText; break; 269case CommandId.Delete: uiText = SR.DeleteText; break; 270case CommandId.Find: uiText = SR.FindText; break; 271case CommandId.Replace: uiText = SR.ReplaceText; break; 272case CommandId.SelectAll: uiText = SR.SelectAllText; break; 273case CommandId.Help: uiText = SR.HelpText; break; 274case CommandId.New: uiText = SR.NewText; break; 275case CommandId.Open: uiText = SR.OpenText; break; 276case CommandId.Save: uiText = SR.SaveText; break; 277case CommandId.SaveAs: uiText = SR.SaveAsText; break; 278case CommandId.Print: uiText = SR.PrintText; break; 279case CommandId.CancelPrint: uiText = SR.CancelPrintText; break; 280case CommandId.PrintPreview: uiText = SR.PrintPreviewText; break; 281case CommandId.Close: uiText = SR.CloseText; break; 282case CommandId.ContextMenu: uiText = SR.ContextMenuText; break; 283case CommandId.CorrectionList: uiText = SR.CorrectionListText; break; 284case CommandId.Properties: uiText = SR.PropertiesText; break; 285case CommandId.Stop: uiText = SR.StopText; break; 286case CommandId.NotACommand: uiText = SR.NotACommandText; break; 297switch ((CommandId)commandId) 299case CommandId.Cut: 305case CommandId.Copy: 311case CommandId.Paste: 317case CommandId.Undo: 323case CommandId.Redo: 329case CommandId.Delete: 335case CommandId.Find: 341case CommandId.Replace: 347case CommandId.SelectAll: 353case CommandId.Help: 359case CommandId.New: 365case CommandId.Open: 371case CommandId.Save: 377case CommandId.SaveAs: 379case CommandId.Print: 385case CommandId.CancelPrint: 387case CommandId.PrintPreview: 393case CommandId.Close: 395case CommandId.ContextMenu: 401case CommandId.CorrectionList: 407case CommandId.Properties: 413case CommandId.Stop: 419case CommandId.NotACommand: 426private static RoutedUICommand _EnsureCommand(CommandId idCommand) 428if (idCommand >= 0 && idCommand < CommandId.Last) 484private static RoutedUICommand[] _internalCommands = new RoutedUICommand[(int)CommandId.Last];