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