57 instantiations of KeyGesture
Microsoft.VisualStudio.LanguageServices (7)
GenerateType\GenerateTypeDialog.xaml.cs (5)
53
new InputGestureCollection(new List<InputGesture> { new
KeyGesture
(Key.A, ModifierKeys.Alt) })),
60
new InputGestureCollection(new List<InputGesture> { new
KeyGesture
(Key.K, ModifierKeys.Alt) })),
67
new InputGestureCollection(new List<InputGesture> { new
KeyGesture
(Key.P, ModifierKeys.Alt) })),
74
new InputGestureCollection(new List<InputGesture> { new
KeyGesture
(Key.C, ModifierKeys.Alt) })),
81
new InputGestureCollection(new List<InputGesture> { new
KeyGesture
(Key.X, ModifierKeys.Alt) })),
PickMembers\PickMembersDialog.xaml.cs (2)
52
new InputGestureCollection(new List<InputGesture> { new
KeyGesture
(Key.S, ModifierKeys.Alt) })),
59
new InputGestureCollection(new List<InputGesture> { new
KeyGesture
(Key.D, ModifierKeys.Alt) })),
PresentationCore (4)
System\Windows\Input\Command\KeyBinding.cs (2)
56
this(command, new
KeyGesture
(key, modifiers))
191
Gesture = new
KeyGesture
(key, modifiers, /*validateGesture = */ false);
System\Windows\Input\Command\KeyGestureConverter.cs (2)
82
return new
KeyGesture
(Key.None);
122
return new
KeyGesture
((Key)resultkey, modifiers, displayString);
PresentationFramework (44)
MS\Internal\Commands\CommandHelpers.cs (3)
30
PrivateRegisterCommandHandler(controlType, command, executedRoutedEventHandler, null, new
KeyGesture
(key));
54
PrivateRegisterCommandHandler(controlType, command, executedRoutedEventHandler, canExecuteRoutedEventHandler, new
KeyGesture
(key));
74
PrivateRegisterCommandHandler(controlType, command, executedRoutedEventHandler, canExecuteRoutedEventHandler, new
KeyGesture
(key, modifierKeys));
System\Windows\Controls\DataGrid.cs (2)
57
CommandManager.RegisterClassInputBinding(ownerType, new InputBinding(BeginEditCommand, new
KeyGesture
(Key.F2)));
62
CommandManager.RegisterClassInputBinding(ownerType, new InputBinding(CancelEditCommand, new
KeyGesture
(Key.Escape)));
System\Windows\Controls\DocumentViewer.cs (16)
1503
new
KeyGesture
(Key.D2, ModifierKeys.Control));
1633
new
KeyGesture
(Key.Add, ModifierKeys.Control),
1635
new
KeyGesture
(Key.Add, ModifierKeys.Shift | ModifierKeys.Control),
1637
new
KeyGesture
(Key.OemPlus, ModifierKeys.Control),
1639
new
KeyGesture
(Key.OemPlus, ModifierKeys.Shift | ModifierKeys.Control));
1649
new
KeyGesture
(Key.Subtract, ModifierKeys.Control),
1651
new
KeyGesture
(Key.Subtract, ModifierKeys.Shift | ModifierKeys.Control),
1653
new
KeyGesture
(Key.OemMinus, ModifierKeys.Control),
1655
new
KeyGesture
(Key.OemMinus, ModifierKeys.Shift | ModifierKeys.Control));
1662
new
KeyGesture
(Key.PageUp, ModifierKeys.Control));
1669
new
KeyGesture
(Key.PageDown, ModifierKeys.Control));
1676
new
KeyGesture
(Key.Home, ModifierKeys.Control));
1683
new
KeyGesture
(Key.End, ModifierKeys.Control));
1694
new
KeyGesture
(Key.D1, ModifierKeys.Control));
1704
new
KeyGesture
(Key.D3, ModifierKeys.Control));
1714
new
KeyGesture
(Key.D4, ModifierKeys.Control));
System\Windows\Controls\FlowDocumentReader.cs (2)
1364
executedHandler, canExecuteHandler, new
KeyGesture
(Key.OemPlus, ModifierKeys.Control));
1368
executedHandler, canExecuteHandler, new
KeyGesture
(Key.OemMinus, ModifierKeys.Control));
System\Windows\Controls\FlowDocumentScrollViewer.cs (6)
1360
executedHandler, canExecuteHandler, new
KeyGesture
(Key.Home), new
KeyGesture
(Key.Home, ModifierKeys.Control));
1364
executedHandler, canExecuteHandler, new
KeyGesture
(Key.End), new
KeyGesture
(Key.End, ModifierKeys.Control));
1368
executedHandler, canExecuteHandler, new
KeyGesture
(Key.OemPlus, ModifierKeys.Control));
1372
executedHandler, canExecuteHandler, new
KeyGesture
(Key.OemMinus, ModifierKeys.Control));
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1480
executedHandler, canExecuteHandler, new
KeyGesture
(Key.P, ModifierKeys.Control));
System\Windows\Controls\Primitives\ScrollBar.cs (2)
690
CommandHelpers.RegisterCommandHandler(typeof(ScrollBar), ScrollBar.ScrollToTopCommand, onScrollCommand, onQueryScrollCommand, new
KeyGesture
(Key.Home, ModifierKeys.Control));
691
CommandHelpers.RegisterCommandHandler(typeof(ScrollBar), ScrollBar.ScrollToBottomCommand, onScrollCommand, onQueryScrollCommand, new
KeyGesture
(Key.End, ModifierKeys.Control));
System\Windows\Controls\SinglePageViewer.cs (12)
1263
executedHandler, canExecuteHandler, new
KeyGesture
(Key.OemPlus, ModifierKeys.Control));
1267
executedHandler, canExecuteHandler, new
KeyGesture
(Key.OemMinus, ModifierKeys.Control));
1270
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.PreviousPage, new
KeyGesture
(Key.Left)));
1271
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.PreviousPage, new
KeyGesture
(Key.Up)));
1272
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.PreviousPage, new
KeyGesture
(Key.PageUp)));
1273
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.NextPage, new
KeyGesture
(Key.Right)));
1274
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.NextPage, new
KeyGesture
(Key.Down)));
1275
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.NextPage, new
KeyGesture
(Key.PageDown)));
1276
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.FirstPage, new
KeyGesture
(Key.Home)));
1277
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.FirstPage, new
KeyGesture
(Key.Home, ModifierKeys.Control)));
1278
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.LastPage, new
KeyGesture
(Key.End)));
1279
CommandManager.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.LastPage, new
KeyGesture
(Key.End, ModifierKeys.Control)));
PresentationUI (2)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (2)
2075
input.Add(new
KeyGesture
(Key.F6, ModifierKeys.Control));
2084
DocumentViewer.ViewThumbnailsCommand.InputGestures.Add(new
KeyGesture
(Key.D5, ModifierKeys.Control));
199 references to KeyGesture
PresentationCore (103)
System\Windows\Input\Command\ApplicationCommands.cs (19)
300
KeyGesture
.AddGesturesFromResourceStrings(
306
KeyGesture
.AddGesturesFromResourceStrings(
312
KeyGesture
.AddGesturesFromResourceStrings(
318
KeyGesture
.AddGesturesFromResourceStrings(
324
KeyGesture
.AddGesturesFromResourceStrings(
330
KeyGesture
.AddGesturesFromResourceStrings(
336
KeyGesture
.AddGesturesFromResourceStrings(
342
KeyGesture
.AddGesturesFromResourceStrings(
348
KeyGesture
.AddGesturesFromResourceStrings(
354
KeyGesture
.AddGesturesFromResourceStrings(
360
KeyGesture
.AddGesturesFromResourceStrings(
366
KeyGesture
.AddGesturesFromResourceStrings(
372
KeyGesture
.AddGesturesFromResourceStrings(
380
KeyGesture
.AddGesturesFromResourceStrings(
388
KeyGesture
.AddGesturesFromResourceStrings(
396
KeyGesture
.AddGesturesFromResourceStrings(
402
KeyGesture
.AddGesturesFromResourceStrings(
408
KeyGesture
.AddGesturesFromResourceStrings(
414
KeyGesture
.AddGesturesFromResourceStrings(
System\Windows\Input\Command\ComponentCommands.cs (27)
332
KeyGesture
.AddGesturesFromResourceStrings(
338
KeyGesture
.AddGesturesFromResourceStrings(
344
KeyGesture
.AddGesturesFromResourceStrings(
350
KeyGesture
.AddGesturesFromResourceStrings(
356
KeyGesture
.AddGesturesFromResourceStrings(
362
KeyGesture
.AddGesturesFromResourceStrings(
368
KeyGesture
.AddGesturesFromResourceStrings(
374
KeyGesture
.AddGesturesFromResourceStrings(
380
KeyGesture
.AddGesturesFromResourceStrings(
386
KeyGesture
.AddGesturesFromResourceStrings(
392
KeyGesture
.AddGesturesFromResourceStrings(
398
KeyGesture
.AddGesturesFromResourceStrings(
404
KeyGesture
.AddGesturesFromResourceStrings(
410
KeyGesture
.AddGesturesFromResourceStrings(
416
KeyGesture
.AddGesturesFromResourceStrings(
422
KeyGesture
.AddGesturesFromResourceStrings(
428
KeyGesture
.AddGesturesFromResourceStrings(
434
KeyGesture
.AddGesturesFromResourceStrings(
440
KeyGesture
.AddGesturesFromResourceStrings(
446
KeyGesture
.AddGesturesFromResourceStrings(
452
KeyGesture
.AddGesturesFromResourceStrings(
458
KeyGesture
.AddGesturesFromResourceStrings(
464
KeyGesture
.AddGesturesFromResourceStrings(
470
KeyGesture
.AddGesturesFromResourceStrings(
476
KeyGesture
.AddGesturesFromResourceStrings(
482
KeyGesture
.AddGesturesFromResourceStrings(
488
KeyGesture
.AddGesturesFromResourceStrings(
System\Windows\Input\Command\KeyBinding.cs (6)
44
public KeyBinding(ICommand command,
KeyGesture
gesture) : base(command, gesture)
77
return base.Gesture as
KeyGesture
;
81
KeyGesture
keyGesture = value as
KeyGesture
;
89
throw new ArgumentException(SR.Format(SR.InputBinding_ExpectedInputGesture, typeof(
KeyGesture
)));
164
private void SynchronizePropertiesFromGesture(
KeyGesture
keyGesture)
System\Windows\Input\Command\KeyGesture.cs (3)
277
KeyGesture
keyGesture = CreateFromResourceStrings(keyGestureToken, keyDisplayString);
286
internal static
KeyGesture
CreateFromResourceStrings(string keyGestureToken, string keyDisplayString)
295
return _keyGestureConverter.ConvertFromInvariantString(keyGestureToken) as
KeyGesture
;
System\Windows\Input\Command\KeyGestureConverter.cs (4)
58
KeyGesture
keyGesture = context.Instance as
KeyGesture
;
144
KeyGesture
keyGesture = value as
KeyGesture
;
System\Windows\Input\Command\KeyGestureValueSerializer.cs (4)
46
KeyGesture
keyGesture = value as
KeyGesture
;
63
TypeConverter converter = TypeDescriptor.GetConverter(typeof(
KeyGesture
));
78
TypeConverter converter = TypeDescriptor.GetConverter(typeof(
KeyGesture
));
System\Windows\Input\Command\MediaCommands.cs (24)
289
KeyGesture
.AddGesturesFromResourceStrings(
295
KeyGesture
.AddGesturesFromResourceStrings(
301
KeyGesture
.AddGesturesFromResourceStrings(
307
KeyGesture
.AddGesturesFromResourceStrings(
313
KeyGesture
.AddGesturesFromResourceStrings(
319
KeyGesture
.AddGesturesFromResourceStrings(
325
KeyGesture
.AddGesturesFromResourceStrings(
331
KeyGesture
.AddGesturesFromResourceStrings(
337
KeyGesture
.AddGesturesFromResourceStrings(
343
KeyGesture
.AddGesturesFromResourceStrings(
349
KeyGesture
.AddGesturesFromResourceStrings(
355
KeyGesture
.AddGesturesFromResourceStrings(
361
KeyGesture
.AddGesturesFromResourceStrings(
367
KeyGesture
.AddGesturesFromResourceStrings(
373
KeyGesture
.AddGesturesFromResourceStrings(
379
KeyGesture
.AddGesturesFromResourceStrings(
385
KeyGesture
.AddGesturesFromResourceStrings(
391
KeyGesture
.AddGesturesFromResourceStrings(
397
KeyGesture
.AddGesturesFromResourceStrings(
403
KeyGesture
.AddGesturesFromResourceStrings(
409
KeyGesture
.AddGesturesFromResourceStrings(
415
KeyGesture
.AddGesturesFromResourceStrings(
421
KeyGesture
.AddGesturesFromResourceStrings(
427
KeyGesture
.AddGesturesFromResourceStrings(
System\Windows\Input\Command\NavigationCommands.cs (16)
224
KeyGesture
.AddGesturesFromResourceStrings(
230
KeyGesture
.AddGesturesFromResourceStrings(
236
KeyGesture
.AddGesturesFromResourceStrings(
242
KeyGesture
.AddGesturesFromResourceStrings(
248
KeyGesture
.AddGesturesFromResourceStrings(
254
KeyGesture
.AddGesturesFromResourceStrings(
260
KeyGesture
.AddGesturesFromResourceStrings(
266
KeyGesture
.AddGesturesFromResourceStrings(
272
KeyGesture
.AddGesturesFromResourceStrings(
278
KeyGesture
.AddGesturesFromResourceStrings(
284
KeyGesture
.AddGesturesFromResourceStrings(
290
KeyGesture
.AddGesturesFromResourceStrings(
296
KeyGesture
.AddGesturesFromResourceStrings(
302
KeyGesture
.AddGesturesFromResourceStrings(
308
KeyGesture
.AddGesturesFromResourceStrings(
314
KeyGesture
.AddGesturesFromResourceStrings(
PresentationFramework (96)
MS\Internal\Commands\CommandHelpers.cs (2)
81
KeyGesture
.CreateFromResourceStrings(SR.GetResourceString(srid1), SR.GetResourceString(srid2)));
88
KeyGesture
.CreateFromResourceStrings(SR.GetResourceString(srid1), SR.GetResourceString(srid2)));
System\Windows\Controls\FlowDocumentReader.cs (1)
1332
executedHandler, canExecuteHandler,
KeyGesture
.CreateFromResourceStrings(KeySwitchViewingMode, nameof(SR.KeySwitchViewingModeDisplayString)));
System\Windows\Controls\InkCanvas.cs (4)
82
KeyGesture
.CreateFromResourceStrings(InkCanvasDeselectKey, nameof(SR.InkCanvasDeselectKeyDisplayString)));
2456
KeyGesture
.CreateFromResourceStrings(KeyShiftDelete, nameof(SR.KeyShiftDeleteDisplayString)));
2459
KeyGesture
.CreateFromResourceStrings(KeyCtrlInsert, nameof(SR.KeyCtrlInsertDisplayString)));
2464
InputGesture pasteInputGesture =
KeyGesture
.CreateFromResourceStrings(KeyShiftInsert, SR.KeyShiftInsertDisplayString);
System\Windows\Controls\ListBox.cs (1)
76
CommandHelpers.RegisterCommandHandler(typeof(ListBox), ListBox.SelectAllCommand, new ExecutedRoutedEventHandler(OnSelectAll), new CanExecuteRoutedEventHandler(OnQueryStatusSelectAll),
KeyGesture
.CreateFromResourceStrings(ListBoxSelectAllKey, SR.ListBoxSelectAllKeyDisplayString));
System\Windows\Controls\MenuItem.cs (2)
1137
KeyGesture
keyGesture = ((IList)col)[i] as
KeyGesture
;
System\windows\Documents\TextEditor.cs (3)
401
CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Undo, new ExecutedRoutedEventHandler(OnUndo), new CanExecuteRoutedEventHandler(OnQueryStatusUndo),
KeyGesture
.CreateFromResourceStrings(KeyUndo, SR.KeyUndoDisplayString),
KeyGesture
.CreateFromResourceStrings(KeyAltUndo, SR.KeyAltUndoDisplayString));
402
CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Redo, new ExecutedRoutedEventHandler(OnRedo), new CanExecuteRoutedEventHandler(OnQueryStatusRedo),
KeyGesture
.CreateFromResourceStrings(KeyRedo, nameof(SR.KeyRedoDisplayString)));
System\windows\Documents\TextEditorCharacters.cs (8)
35
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ResetFormat , new ExecutedRoutedEventHandler(OnResetFormat) , onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyResetFormat, nameof(SR.KeyResetFormatDisplayString)));
36
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleBold , new ExecutedRoutedEventHandler(OnToggleBold) , onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyToggleBold, nameof(SR.KeyToggleBoldDisplayString)));
37
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleItalic , new ExecutedRoutedEventHandler(OnToggleItalic) , onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyToggleItalic, nameof(SR.KeyToggleItalicDisplayString)));
38
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleUnderline , new ExecutedRoutedEventHandler(OnToggleUnderline) , onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyToggleUnderline, nameof(SR.KeyToggleUnderlineDisplayString)));
39
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleSubscript , new ExecutedRoutedEventHandler(OnToggleSubscript) , onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyToggleSubscript, nameof(SR.KeyToggleSubscriptDisplayString)));
40
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleSuperscript , new ExecutedRoutedEventHandler(OnToggleSuperscript) , onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyToggleSuperscript, nameof(SR.KeyToggleSuperscriptDisplayString)));
41
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.IncreaseFontSize , new ExecutedRoutedEventHandler(OnIncreaseFontSize) , onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyIncreaseFontSize, nameof(SR.KeyIncreaseFontSizeDisplayString)));
42
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DecreaseFontSize , new ExecutedRoutedEventHandler(OnDecreaseFontSize) , onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyDecreaseFontSize, nameof(SR.KeyDecreaseFontSizeDisplayString)));
System\windows\Documents\TextEditorCopyPaste.cs (6)
37
CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnCopy), new CanExecuteRoutedEventHandler(OnQueryStatusCopy),
KeyGesture
.CreateFromResourceStrings(KeyCopy, SR.KeyCopyDisplayString),
KeyGesture
.CreateFromResourceStrings(KeyCtrlInsert, SR.KeyCtrlInsertDisplayString));
40
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.CopyFormat, new ExecutedRoutedEventHandler(OnCopyFormat), new CanExecuteRoutedEventHandler(OnQueryStatusCopyFormat),
KeyGesture
.CreateFromResourceStrings(KeyCopyFormat, nameof(SR.KeyCopyFormatDisplayString)));
44
CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Cut, new ExecutedRoutedEventHandler(OnCut), new CanExecuteRoutedEventHandler(OnQueryStatusCut),
KeyGesture
.CreateFromResourceStrings(KeyCut, SR.KeyCutDisplayString),
KeyGesture
.CreateFromResourceStrings(KeyShiftDelete, SR.KeyShiftDeleteDisplayString));
48
InputGesture inputGesture =
KeyGesture
.CreateFromResourceStrings(KeyShiftInsert, SR.KeyShiftInsertDisplayString);
System\windows\Documents\TextEditorLists.cs (5)
30
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.RemoveListMarkers , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusNYI),
KeyGesture
.CreateFromResourceStrings(KeyRemoveListMarkers, nameof(SR.KeyRemoveListMarkersDisplayString)));
31
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleBullets , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusNYI),
KeyGesture
.CreateFromResourceStrings(KeyToggleBullets, nameof(SR.KeyToggleBulletsDisplayString)));
32
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleNumbering , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusNYI),
KeyGesture
.CreateFromResourceStrings(KeyToggleNumbering, nameof(SR.KeyToggleNumberingDisplayString)));
33
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.IncreaseIndentation , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusTab),
KeyGesture
.CreateFromResourceStrings(KeyIncreaseIndentation, nameof(SR.KeyIncreaseIndentationDisplayString)));
34
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DecreaseIndentation , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusTab),
KeyGesture
.CreateFromResourceStrings(KeyDecreaseIndentation, nameof(SR.KeyDecreaseIndentationDisplayString)));
System\windows\Documents\TextEditorParagraphs.cs (7)
37
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.AlignLeft, new ExecutedRoutedEventHandler(OnAlignLeft), onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyAlignLeft, nameof(SR.KeyAlignLeftDisplayString)));
38
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.AlignCenter, new ExecutedRoutedEventHandler(OnAlignCenter), onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyAlignCenter, nameof(SR.KeyAlignCenterDisplayString)));
39
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.AlignRight, new ExecutedRoutedEventHandler(OnAlignRight), onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyAlignRight, nameof(SR.KeyAlignRightDisplayString)));
40
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.AlignJustify, new ExecutedRoutedEventHandler(OnAlignJustify), onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyAlignJustify, nameof(SR.KeyAlignJustifyDisplayString)));
41
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ApplySingleSpace, new ExecutedRoutedEventHandler(OnApplySingleSpace), onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyApplySingleSpace, nameof(SR.KeyApplySingleSpaceDisplayString)));
42
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ApplyOneAndAHalfSpace, new ExecutedRoutedEventHandler(OnApplyOneAndAHalfSpace), onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyApplyOneAndAHalfSpace, nameof(SR.KeyApplyOneAndAHalfSpaceDisplayString)));
43
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ApplyDoubleSpace, new ExecutedRoutedEventHandler(OnApplyDoubleSpace), onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyApplyDoubleSpace, nameof(SR.KeyApplyDoubleSpaceDisplayString)));
System\windows\Documents\TextEditorSelection.cs (36)
45
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveRightByCharacter, new ExecutedRoutedEventHandler(OnMoveRightByCharacter), queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveRightByCharacter, nameof(SR.KeyMoveRightByCharacterDisplayString)));
46
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveLeftByCharacter, new ExecutedRoutedEventHandler(OnMoveLeftByCharacter), queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveLeftByCharacter, nameof(SR.KeyMoveLeftByCharacterDisplayString)));
47
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveRightByWord, new ExecutedRoutedEventHandler(OnMoveRightByWord), queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveRightByWord, nameof(SR.KeyMoveRightByWordDisplayString)));
48
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveLeftByWord, new ExecutedRoutedEventHandler(OnMoveLeftByWord), queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveLeftByWord, nameof(SR.KeyMoveLeftByWordDisplayString)));
49
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveDownByLine, new ExecutedRoutedEventHandler(OnMoveDownByLine), queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveDownByLine, nameof(SR.KeyMoveDownByLineDisplayString)));
50
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveUpByLine, new ExecutedRoutedEventHandler(OnMoveUpByLine), queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveUpByLine, nameof(SR.KeyMoveUpByLineDisplayString)));
51
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveDownByParagraph, new ExecutedRoutedEventHandler(OnMoveDownByParagraph), queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveDownByParagraph, nameof(SR.KeyMoveDownByParagraphDisplayString)));
52
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveUpByParagraph, new ExecutedRoutedEventHandler(OnMoveUpByParagraph), queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveUpByParagraph, nameof(SR.KeyMoveUpByParagraphDisplayString)));
53
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveDownByPage, new ExecutedRoutedEventHandler(OnMoveDownByPage), queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveDownByPage, nameof(SR.KeyMoveDownByPageDisplayString)));
54
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveUpByPage, new ExecutedRoutedEventHandler(OnMoveUpByPage), queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveUpByPage, nameof(SR.KeyMoveUpByPageDisplayString)));
55
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToLineStart, new ExecutedRoutedEventHandler(OnMoveToLineStart), queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveToLineStart, nameof(SR.KeyMoveToLineStartDisplayString)));
56
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToLineEnd, new ExecutedRoutedEventHandler(OnMoveToLineEnd), queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveToLineEnd, nameof(SR.KeyMoveToLineEndDisplayString)));
57
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToColumnStart, nyiCommandHandler, queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveToColumnStart, nameof(SR.KeyMoveToColumnStartDisplayString)));
58
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToColumnEnd, nyiCommandHandler, queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveToColumnEnd, nameof(SR.KeyMoveToColumnEndDisplayString)));
59
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToWindowTop, nyiCommandHandler, queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveToWindowTop, nameof(SR.KeyMoveToWindowTopDisplayString)));
60
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToWindowBottom, nyiCommandHandler, queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveToWindowBottom, nameof(SR.KeyMoveToWindowBottomDisplayString)));
61
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToDocumentStart, new ExecutedRoutedEventHandler(OnMoveToDocumentStart), queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveToDocumentStart, nameof(SR.KeyMoveToDocumentStartDisplayString)));
62
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToDocumentEnd, new ExecutedRoutedEventHandler(OnMoveToDocumentEnd), queryStatusCaretNavigationHandler,
KeyGesture
.CreateFromResourceStrings(KeyMoveToDocumentEnd, nameof(SR.KeyMoveToDocumentEndDisplayString)));
66
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectRightByCharacter, new ExecutedRoutedEventHandler(OnSelectRightByCharacter), queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectRightByCharacter, nameof(SR.KeySelectRightByCharacterDisplayString)));
67
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectLeftByCharacter, new ExecutedRoutedEventHandler(OnSelectLeftByCharacter), queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectLeftByCharacter, nameof(SR.KeySelectLeftByCharacterDisplayString)));
68
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectRightByWord, new ExecutedRoutedEventHandler(OnSelectRightByWord), queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectRightByWord, nameof(SR.KeySelectRightByWordDisplayString)));
69
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectLeftByWord, new ExecutedRoutedEventHandler(OnSelectLeftByWord), queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectLeftByWord, nameof(SR.KeySelectLeftByWordDisplayString)));
70
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectDownByLine, new ExecutedRoutedEventHandler(OnSelectDownByLine), queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectDownByLine, nameof(SR.KeySelectDownByLineDisplayString)));
71
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectUpByLine, new ExecutedRoutedEventHandler(OnSelectUpByLine), queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectUpByLine, nameof(SR.KeySelectUpByLineDisplayString)));
72
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectDownByParagraph, new ExecutedRoutedEventHandler(OnSelectDownByParagraph), queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectDownByParagraph, nameof(SR.KeySelectDownByParagraphDisplayString)));
73
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectUpByParagraph, new ExecutedRoutedEventHandler(OnSelectUpByParagraph), queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectUpByParagraph, nameof(SR.KeySelectUpByParagraphDisplayString)));
74
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectDownByPage, new ExecutedRoutedEventHandler(OnSelectDownByPage), queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectDownByPage, nameof(SR.KeySelectDownByPageDisplayString)));
75
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectUpByPage, new ExecutedRoutedEventHandler(OnSelectUpByPage), queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectUpByPage, nameof(SR.KeySelectUpByPageDisplayString)));
76
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToLineStart, new ExecutedRoutedEventHandler(OnSelectToLineStart), queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectToLineStart, nameof(SR.KeySelectToLineStartDisplayString)));
77
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToLineEnd, new ExecutedRoutedEventHandler(OnSelectToLineEnd), queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectToLineEnd, nameof(SR.KeySelectToLineEndDisplayString)));
78
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToColumnStart, nyiCommandHandler, queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectToColumnStart, nameof(SR.KeySelectToColumnStartDisplayString)));
79
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToColumnEnd, nyiCommandHandler, queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectToColumnEnd, nameof(SR.KeySelectToColumnEndDisplayString)));
80
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToWindowTop, nyiCommandHandler, queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectToWindowTop, nameof(SR.KeySelectToWindowTopDisplayString)));
81
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToWindowBottom, nyiCommandHandler, queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectToWindowBottom, nameof(SR.KeySelectToWindowBottomDisplayString)));
82
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToDocumentStart, new ExecutedRoutedEventHandler(OnSelectToDocumentStart), queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectToDocumentStart, nameof(SR.KeySelectToDocumentStartDisplayString)));
83
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToDocumentEnd, new ExecutedRoutedEventHandler(OnSelectToDocumentEnd), queryStatusKeyboardSelectionHandler,
KeyGesture
.CreateFromResourceStrings(KeySelectToDocumentEnd, nameof(SR.KeySelectToDocumentEndDisplayString)));
System\windows\Documents\TextEditorTables.cs (6)
33
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.InsertTable , onTableCommand, onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyInsertTable, nameof(SR.KeyInsertTableDisplayString)));
34
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.InsertRows , onTableCommand, onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyInsertRows, nameof(SR.KeyInsertRowsDisplayString)));
35
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.InsertColumns , onTableCommand, onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyInsertColumns, nameof(SR.KeyInsertColumnsDisplayString)));
37
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DeleteColumns , onTableCommand, onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyDeleteColumns, nameof(SR.KeyDeleteColumnsDisplayString)));
38
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MergeCells , onTableCommand, onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeyMergeCells, nameof(SR.KeyMergeCellsDisplayString)));
39
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SplitCell , onTableCommand, onQueryStatusNYI,
KeyGesture
.CreateFromResourceStrings(KeySplitCell, nameof(SR.KeySplitCellDisplayString)));
System\windows\Documents\TextEditorTyping.cs (12)
70
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleInsert , new ExecutedRoutedEventHandler(OnToggleInsert) , onQueryStatusNYI ,
KeyGesture
.CreateFromResourceStrings(KeyToggleInsert, nameof(SR.KeyToggleInsertDisplayString) ));
71
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.Delete , new ExecutedRoutedEventHandler(OnDelete) , onQueryStatusNYI ,
KeyGesture
.CreateFromResourceStrings(KeyDelete, nameof(SR.KeyDeleteDisplayString) ));
72
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DeleteNextWord , new ExecutedRoutedEventHandler(OnDeleteNextWord) , onQueryStatusNYI ,
KeyGesture
.CreateFromResourceStrings(KeyDeleteNextWord, nameof(SR.KeyDeleteNextWordDisplayString) ));
73
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DeletePreviousWord , new ExecutedRoutedEventHandler(OnDeletePreviousWord) , onQueryStatusNYI ,
KeyGesture
.CreateFromResourceStrings(KeyDeletePreviousWord, nameof(SR.KeyDeletePreviousWordDisplayString) ));
74
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.EnterParagraphBreak , onEnterBreak , onQueryStatusEnterBreak ,
KeyGesture
.CreateFromResourceStrings(KeyEnterParagraphBreak, nameof(SR.KeyEnterParagraphBreakDisplayString) ));
75
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.EnterLineBreak , onEnterBreak , onQueryStatusEnterBreak ,
KeyGesture
.CreateFromResourceStrings(KeyEnterLineBreak, nameof(SR.KeyEnterLineBreakDisplayString) ));
76
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.TabForward , new ExecutedRoutedEventHandler(OnTabForward) , new CanExecuteRoutedEventHandler(OnQueryStatusTabForward) ,
KeyGesture
.CreateFromResourceStrings(KeyTabForward, nameof(SR.KeyTabForwardDisplayString) ));
77
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.TabBackward , new ExecutedRoutedEventHandler(OnTabBackward) , new CanExecuteRoutedEventHandler(OnQueryStatusTabBackward) ,
KeyGesture
.CreateFromResourceStrings(KeyTabBackward, nameof(SR.KeyTabBackwardDisplayString) ));
78
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.Space , onSpace , onQueryStatusNYI ,
KeyGesture
.CreateFromResourceStrings(KeySpace, nameof(SR.KeySpaceDisplayString) ));
79
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ShiftSpace , onSpace , onQueryStatusNYI ,
KeyGesture
.CreateFromResourceStrings(KeyShiftSpace, nameof(SR.KeyShiftSpaceDisplayString) ));
81
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.Backspace , new ExecutedRoutedEventHandler(OnBackspace) , onQueryStatusNYI ,
KeyGesture
.CreateFromResourceStrings(KeyBackspace, SR.KeyBackspaceDisplayString),
KeyGesture
.CreateFromResourceStrings(KeyShiftBackspace, SR.KeyShiftBackspaceDisplayString) );
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
433
case 339: t = () => typeof(
KeyGesture
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
6003
typeof(System.Windows.Input.
KeyGesture
),
System\Windows\Markup\KnownTypes.cs (1)
5893
case KnownElements.KeyGesture: t = typeof(System.Windows.Input.
KeyGesture
); break;