92 references to CreateFromResourceStrings
PresentationCore (1)
System\Windows\Input\Command\KeyGesture.cs (1)
276
KeyGesture keyGesture =
CreateFromResourceStrings
(keyGestureToken, keyDisplayString);
PresentationFramework (91)
MS\Internal\Commands\CommandHelpers.cs (2)
80
KeyGesture.
CreateFromResourceStrings
(SR.GetResourceString(srid1), SR.GetResourceString(srid2)));
87
KeyGesture.
CreateFromResourceStrings
(SR.GetResourceString(srid1), SR.GetResourceString(srid2)));
System\Windows\Controls\FlowDocumentReader.cs (1)
1320
executedHandler, canExecuteHandler, KeyGesture.
CreateFromResourceStrings
(KeySwitchViewingMode, nameof(SR.KeySwitchViewingModeDisplayString)));
System\Windows\Controls\InkCanvas.cs (4)
81
KeyGesture.
CreateFromResourceStrings
(InkCanvasDeselectKey, nameof(SR.InkCanvasDeselectKeyDisplayString)));
2471
KeyGesture.
CreateFromResourceStrings
(KeyShiftDelete, nameof(SR.KeyShiftDeleteDisplayString)));
2474
KeyGesture.
CreateFromResourceStrings
(KeyCtrlInsert, nameof(SR.KeyCtrlInsertDisplayString)));
2479
InputGesture pasteInputGesture = KeyGesture.
CreateFromResourceStrings
(KeyShiftInsert, SR.KeyShiftInsertDisplayString);
System\Windows\Controls\ListBox.cs (1)
75
CommandHelpers.RegisterCommandHandler(typeof(ListBox), ListBox.SelectAllCommand, new ExecutedRoutedEventHandler(OnSelectAll), new CanExecuteRoutedEventHandler(OnQueryStatusSelectAll), KeyGesture.
CreateFromResourceStrings
(ListBoxSelectAllKey, SR.ListBoxSelectAllKeyDisplayString));
System\windows\Documents\TextEditor.cs (3)
392
CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Undo, new ExecutedRoutedEventHandler(OnUndo), new CanExecuteRoutedEventHandler(OnQueryStatusUndo), KeyGesture.
CreateFromResourceStrings
(KeyUndo, SR.KeyUndoDisplayString), KeyGesture.
CreateFromResourceStrings
(KeyAltUndo, SR.KeyAltUndoDisplayString));
393
CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Redo, new ExecutedRoutedEventHandler(OnRedo), new CanExecuteRoutedEventHandler(OnQueryStatusRedo), KeyGesture.
CreateFromResourceStrings
(KeyRedo, nameof(SR.KeyRedoDisplayString)));
System\windows\Documents\TextEditorCharacters.cs (8)
34
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ResetFormat , new ExecutedRoutedEventHandler(OnResetFormat) , onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyResetFormat, nameof(SR.KeyResetFormatDisplayString)));
35
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleBold , new ExecutedRoutedEventHandler(OnToggleBold) , onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyToggleBold, nameof(SR.KeyToggleBoldDisplayString)));
36
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleItalic , new ExecutedRoutedEventHandler(OnToggleItalic) , onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyToggleItalic, nameof(SR.KeyToggleItalicDisplayString)));
37
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleUnderline , new ExecutedRoutedEventHandler(OnToggleUnderline) , onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyToggleUnderline, nameof(SR.KeyToggleUnderlineDisplayString)));
38
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleSubscript , new ExecutedRoutedEventHandler(OnToggleSubscript) , onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyToggleSubscript, nameof(SR.KeyToggleSubscriptDisplayString)));
39
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleSuperscript , new ExecutedRoutedEventHandler(OnToggleSuperscript) , onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyToggleSuperscript, nameof(SR.KeyToggleSuperscriptDisplayString)));
40
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.IncreaseFontSize , new ExecutedRoutedEventHandler(OnIncreaseFontSize) , onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyIncreaseFontSize, nameof(SR.KeyIncreaseFontSizeDisplayString)));
41
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DecreaseFontSize , new ExecutedRoutedEventHandler(OnDecreaseFontSize) , onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyDecreaseFontSize, nameof(SR.KeyDecreaseFontSizeDisplayString)));
System\windows\Documents\TextEditorCopyPaste.cs (6)
36
CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnCopy), new CanExecuteRoutedEventHandler(OnQueryStatusCopy), KeyGesture.
CreateFromResourceStrings
(KeyCopy, SR.KeyCopyDisplayString), KeyGesture.
CreateFromResourceStrings
(KeyCtrlInsert, SR.KeyCtrlInsertDisplayString));
39
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.CopyFormat, new ExecutedRoutedEventHandler(OnCopyFormat), new CanExecuteRoutedEventHandler(OnQueryStatusCopyFormat), KeyGesture.
CreateFromResourceStrings
(KeyCopyFormat, nameof(SR.KeyCopyFormatDisplayString)));
43
CommandHelpers.RegisterCommandHandler(controlType, ApplicationCommands.Cut, new ExecutedRoutedEventHandler(OnCut), new CanExecuteRoutedEventHandler(OnQueryStatusCut), KeyGesture.
CreateFromResourceStrings
(KeyCut, SR.KeyCutDisplayString), KeyGesture.
CreateFromResourceStrings
(KeyShiftDelete, SR.KeyShiftDeleteDisplayString));
47
InputGesture inputGesture = KeyGesture.
CreateFromResourceStrings
(KeyShiftInsert, SR.KeyShiftInsertDisplayString);
System\windows\Documents\TextEditorLists.cs (5)
29
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.RemoveListMarkers , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusNYI), KeyGesture.
CreateFromResourceStrings
(KeyRemoveListMarkers, nameof(SR.KeyRemoveListMarkersDisplayString)));
30
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleBullets , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusNYI), KeyGesture.
CreateFromResourceStrings
(KeyToggleBullets, nameof(SR.KeyToggleBulletsDisplayString)));
31
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleNumbering , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusNYI), KeyGesture.
CreateFromResourceStrings
(KeyToggleNumbering, nameof(SR.KeyToggleNumberingDisplayString)));
32
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.IncreaseIndentation , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusTab), KeyGesture.
CreateFromResourceStrings
(KeyIncreaseIndentation, nameof(SR.KeyIncreaseIndentationDisplayString)));
33
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DecreaseIndentation , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusTab), KeyGesture.
CreateFromResourceStrings
(KeyDecreaseIndentation, nameof(SR.KeyDecreaseIndentationDisplayString)));
System\windows\Documents\TextEditorParagraphs.cs (7)
36
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.AlignLeft, new ExecutedRoutedEventHandler(OnAlignLeft), onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyAlignLeft, nameof(SR.KeyAlignLeftDisplayString)));
37
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.AlignCenter, new ExecutedRoutedEventHandler(OnAlignCenter), onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyAlignCenter, nameof(SR.KeyAlignCenterDisplayString)));
38
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.AlignRight, new ExecutedRoutedEventHandler(OnAlignRight), onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyAlignRight, nameof(SR.KeyAlignRightDisplayString)));
39
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.AlignJustify, new ExecutedRoutedEventHandler(OnAlignJustify), onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyAlignJustify, nameof(SR.KeyAlignJustifyDisplayString)));
40
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ApplySingleSpace, new ExecutedRoutedEventHandler(OnApplySingleSpace), onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyApplySingleSpace, nameof(SR.KeyApplySingleSpaceDisplayString)));
41
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ApplyOneAndAHalfSpace, new ExecutedRoutedEventHandler(OnApplyOneAndAHalfSpace), onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyApplyOneAndAHalfSpace, nameof(SR.KeyApplyOneAndAHalfSpaceDisplayString)));
42
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ApplyDoubleSpace, new ExecutedRoutedEventHandler(OnApplyDoubleSpace), onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyApplyDoubleSpace, nameof(SR.KeyApplyDoubleSpaceDisplayString)));
System\windows\Documents\TextEditorSelection.cs (36)
44
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveRightByCharacter, new ExecutedRoutedEventHandler(OnMoveRightByCharacter), queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveRightByCharacter, nameof(SR.KeyMoveRightByCharacterDisplayString)));
45
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveLeftByCharacter, new ExecutedRoutedEventHandler(OnMoveLeftByCharacter), queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveLeftByCharacter, nameof(SR.KeyMoveLeftByCharacterDisplayString)));
46
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveRightByWord, new ExecutedRoutedEventHandler(OnMoveRightByWord), queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveRightByWord, nameof(SR.KeyMoveRightByWordDisplayString)));
47
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveLeftByWord, new ExecutedRoutedEventHandler(OnMoveLeftByWord), queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveLeftByWord, nameof(SR.KeyMoveLeftByWordDisplayString)));
48
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveDownByLine, new ExecutedRoutedEventHandler(OnMoveDownByLine), queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveDownByLine, nameof(SR.KeyMoveDownByLineDisplayString)));
49
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveUpByLine, new ExecutedRoutedEventHandler(OnMoveUpByLine), queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveUpByLine, nameof(SR.KeyMoveUpByLineDisplayString)));
50
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveDownByParagraph, new ExecutedRoutedEventHandler(OnMoveDownByParagraph), queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveDownByParagraph, nameof(SR.KeyMoveDownByParagraphDisplayString)));
51
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveUpByParagraph, new ExecutedRoutedEventHandler(OnMoveUpByParagraph), queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveUpByParagraph, nameof(SR.KeyMoveUpByParagraphDisplayString)));
52
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveDownByPage, new ExecutedRoutedEventHandler(OnMoveDownByPage), queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveDownByPage, nameof(SR.KeyMoveDownByPageDisplayString)));
53
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveUpByPage, new ExecutedRoutedEventHandler(OnMoveUpByPage), queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveUpByPage, nameof(SR.KeyMoveUpByPageDisplayString)));
54
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToLineStart, new ExecutedRoutedEventHandler(OnMoveToLineStart), queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveToLineStart, nameof(SR.KeyMoveToLineStartDisplayString)));
55
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToLineEnd, new ExecutedRoutedEventHandler(OnMoveToLineEnd), queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveToLineEnd, nameof(SR.KeyMoveToLineEndDisplayString)));
56
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToColumnStart, nyiCommandHandler, queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveToColumnStart, nameof(SR.KeyMoveToColumnStartDisplayString)));
57
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToColumnEnd, nyiCommandHandler, queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveToColumnEnd, nameof(SR.KeyMoveToColumnEndDisplayString)));
58
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToWindowTop, nyiCommandHandler, queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveToWindowTop, nameof(SR.KeyMoveToWindowTopDisplayString)));
59
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToWindowBottom, nyiCommandHandler, queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveToWindowBottom, nameof(SR.KeyMoveToWindowBottomDisplayString)));
60
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToDocumentStart, new ExecutedRoutedEventHandler(OnMoveToDocumentStart), queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveToDocumentStart, nameof(SR.KeyMoveToDocumentStartDisplayString)));
61
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MoveToDocumentEnd, new ExecutedRoutedEventHandler(OnMoveToDocumentEnd), queryStatusCaretNavigationHandler, KeyGesture.
CreateFromResourceStrings
(KeyMoveToDocumentEnd, nameof(SR.KeyMoveToDocumentEndDisplayString)));
65
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectRightByCharacter, new ExecutedRoutedEventHandler(OnSelectRightByCharacter), queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectRightByCharacter, nameof(SR.KeySelectRightByCharacterDisplayString)));
66
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectLeftByCharacter, new ExecutedRoutedEventHandler(OnSelectLeftByCharacter), queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectLeftByCharacter, nameof(SR.KeySelectLeftByCharacterDisplayString)));
67
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectRightByWord, new ExecutedRoutedEventHandler(OnSelectRightByWord), queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectRightByWord, nameof(SR.KeySelectRightByWordDisplayString)));
68
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectLeftByWord, new ExecutedRoutedEventHandler(OnSelectLeftByWord), queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectLeftByWord, nameof(SR.KeySelectLeftByWordDisplayString)));
69
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectDownByLine, new ExecutedRoutedEventHandler(OnSelectDownByLine), queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectDownByLine, nameof(SR.KeySelectDownByLineDisplayString)));
70
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectUpByLine, new ExecutedRoutedEventHandler(OnSelectUpByLine), queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectUpByLine, nameof(SR.KeySelectUpByLineDisplayString)));
71
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectDownByParagraph, new ExecutedRoutedEventHandler(OnSelectDownByParagraph), queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectDownByParagraph, nameof(SR.KeySelectDownByParagraphDisplayString)));
72
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectUpByParagraph, new ExecutedRoutedEventHandler(OnSelectUpByParagraph), queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectUpByParagraph, nameof(SR.KeySelectUpByParagraphDisplayString)));
73
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectDownByPage, new ExecutedRoutedEventHandler(OnSelectDownByPage), queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectDownByPage, nameof(SR.KeySelectDownByPageDisplayString)));
74
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectUpByPage, new ExecutedRoutedEventHandler(OnSelectUpByPage), queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectUpByPage, nameof(SR.KeySelectUpByPageDisplayString)));
75
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToLineStart, new ExecutedRoutedEventHandler(OnSelectToLineStart), queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectToLineStart, nameof(SR.KeySelectToLineStartDisplayString)));
76
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToLineEnd, new ExecutedRoutedEventHandler(OnSelectToLineEnd), queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectToLineEnd, nameof(SR.KeySelectToLineEndDisplayString)));
77
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToColumnStart, nyiCommandHandler, queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectToColumnStart, nameof(SR.KeySelectToColumnStartDisplayString)));
78
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToColumnEnd, nyiCommandHandler, queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectToColumnEnd, nameof(SR.KeySelectToColumnEndDisplayString)));
79
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToWindowTop, nyiCommandHandler, queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectToWindowTop, nameof(SR.KeySelectToWindowTopDisplayString)));
80
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToWindowBottom, nyiCommandHandler, queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectToWindowBottom, nameof(SR.KeySelectToWindowBottomDisplayString)));
81
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToDocumentStart, new ExecutedRoutedEventHandler(OnSelectToDocumentStart), queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectToDocumentStart, nameof(SR.KeySelectToDocumentStartDisplayString)));
82
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SelectToDocumentEnd, new ExecutedRoutedEventHandler(OnSelectToDocumentEnd), queryStatusKeyboardSelectionHandler, KeyGesture.
CreateFromResourceStrings
(KeySelectToDocumentEnd, nameof(SR.KeySelectToDocumentEndDisplayString)));
System\windows\Documents\TextEditorTables.cs (6)
32
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.InsertTable , onTableCommand, onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyInsertTable, nameof(SR.KeyInsertTableDisplayString)));
33
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.InsertRows , onTableCommand, onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyInsertRows, nameof(SR.KeyInsertRowsDisplayString)));
34
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.InsertColumns , onTableCommand, onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyInsertColumns, nameof(SR.KeyInsertColumnsDisplayString)));
36
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DeleteColumns , onTableCommand, onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyDeleteColumns, nameof(SR.KeyDeleteColumnsDisplayString)));
37
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.MergeCells , onTableCommand, onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeyMergeCells, nameof(SR.KeyMergeCellsDisplayString)));
38
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.SplitCell , onTableCommand, onQueryStatusNYI, KeyGesture.
CreateFromResourceStrings
(KeySplitCell, nameof(SR.KeySplitCellDisplayString)));
System\windows\Documents\TextEditorTyping.cs (12)
69
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ToggleInsert , new ExecutedRoutedEventHandler(OnToggleInsert) , onQueryStatusNYI , KeyGesture.
CreateFromResourceStrings
(KeyToggleInsert, nameof(SR.KeyToggleInsertDisplayString) ));
70
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.Delete , new ExecutedRoutedEventHandler(OnDelete) , onQueryStatusNYI , KeyGesture.
CreateFromResourceStrings
(KeyDelete, nameof(SR.KeyDeleteDisplayString) ));
71
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DeleteNextWord , new ExecutedRoutedEventHandler(OnDeleteNextWord) , onQueryStatusNYI , KeyGesture.
CreateFromResourceStrings
(KeyDeleteNextWord, nameof(SR.KeyDeleteNextWordDisplayString) ));
72
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.DeletePreviousWord , new ExecutedRoutedEventHandler(OnDeletePreviousWord) , onQueryStatusNYI , KeyGesture.
CreateFromResourceStrings
(KeyDeletePreviousWord, nameof(SR.KeyDeletePreviousWordDisplayString) ));
73
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.EnterParagraphBreak , onEnterBreak , onQueryStatusEnterBreak , KeyGesture.
CreateFromResourceStrings
(KeyEnterParagraphBreak, nameof(SR.KeyEnterParagraphBreakDisplayString) ));
74
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.EnterLineBreak , onEnterBreak , onQueryStatusEnterBreak , KeyGesture.
CreateFromResourceStrings
(KeyEnterLineBreak, nameof(SR.KeyEnterLineBreakDisplayString) ));
75
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.TabForward , new ExecutedRoutedEventHandler(OnTabForward) , new CanExecuteRoutedEventHandler(OnQueryStatusTabForward) , KeyGesture.
CreateFromResourceStrings
(KeyTabForward, nameof(SR.KeyTabForwardDisplayString) ));
76
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.TabBackward , new ExecutedRoutedEventHandler(OnTabBackward) , new CanExecuteRoutedEventHandler(OnQueryStatusTabBackward) , KeyGesture.
CreateFromResourceStrings
(KeyTabBackward, nameof(SR.KeyTabBackwardDisplayString) ));
77
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.Space , onSpace , onQueryStatusNYI , KeyGesture.
CreateFromResourceStrings
(KeySpace, nameof(SR.KeySpaceDisplayString) ));
78
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.ShiftSpace , onSpace , onQueryStatusNYI , KeyGesture.
CreateFromResourceStrings
(KeyShiftSpace, nameof(SR.KeyShiftSpaceDisplayString) ));
80
CommandHelpers.RegisterCommandHandler(controlType, EditingCommands.Backspace , new ExecutedRoutedEventHandler(OnBackspace) , onQueryStatusNYI , KeyGesture.
CreateFromResourceStrings
(KeyBackspace, SR.KeyBackspaceDisplayString), KeyGesture.
CreateFromResourceStrings
(KeyShiftBackspace, SR.KeyShiftBackspaceDisplayString) );