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