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