171 references to EditingCommands
PresentationFramework (171)
src\Framework\MS\Internal\AppModel\OleCmdHelper.cs (2)
301
new CommandWithArgument(System.Windows.Documents.
EditingCommands
.Backspace));
303
new CommandWithArgument(System.Windows.Documents.
EditingCommands
.Delete));
src\Framework\System\Windows\Documents\EditingCommands.cs (1)
460
command = new RoutedUICommand(commandPropertyName, commandPropertyName, typeof(
EditingCommands
));
src\Framework\System\windows\Documents\TextEditorCharacters.cs (15)
53
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ResetFormat , new ExecutedRoutedEventHandler(OnResetFormat) , onQueryStatusNYI, SRID.KeyResetFormat, SRID.KeyResetFormatDisplayString);
54
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleBold , new ExecutedRoutedEventHandler(OnToggleBold) , onQueryStatusNYI, SRID.KeyToggleBold, SRID.KeyToggleBoldDisplayString);
55
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleItalic , new ExecutedRoutedEventHandler(OnToggleItalic) , onQueryStatusNYI, SRID.KeyToggleItalic, SRID.KeyToggleItalicDisplayString);
56
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleUnderline , new ExecutedRoutedEventHandler(OnToggleUnderline) , onQueryStatusNYI, SRID.KeyToggleUnderline, SRID.KeyToggleUnderlineDisplayString);
57
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleSubscript , new ExecutedRoutedEventHandler(OnToggleSubscript) , onQueryStatusNYI, SRID.KeyToggleSubscript, SRID.KeyToggleSubscriptDisplayString);
58
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleSuperscript , new ExecutedRoutedEventHandler(OnToggleSuperscript) , onQueryStatusNYI, SRID.KeyToggleSuperscript, SRID.KeyToggleSuperscriptDisplayString);
59
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.IncreaseFontSize , new ExecutedRoutedEventHandler(OnIncreaseFontSize) , onQueryStatusNYI, SRID.KeyIncreaseFontSize, SRID.KeyIncreaseFontSizeDisplayString);
60
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.DecreaseFontSize , new ExecutedRoutedEventHandler(OnDecreaseFontSize) , onQueryStatusNYI, SRID.KeyDecreaseFontSize, SRID.KeyDecreaseFontSizeDisplayString);
62
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyFontSize , new ExecutedRoutedEventHandler(OnApplyFontSize) , onQueryStatusNYI, SRID.KeyApplyFontSize, SRID.KeyApplyFontSizeDisplayString);
63
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyFontFamily , new ExecutedRoutedEventHandler(OnApplyFontFamily) , onQueryStatusNYI, SRID.KeyApplyFontFamily, SRID.KeyApplyFontFamilyDisplayString);
64
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyForeground , new ExecutedRoutedEventHandler(OnApplyForeground) , onQueryStatusNYI, SRID.KeyApplyForeground, SRID.KeyApplyForegroundDisplayString);
65
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyBackground , new ExecutedRoutedEventHandler(OnApplyBackground) , onQueryStatusNYI, SRID.KeyApplyBackground, SRID.KeyApplyBackgroundDisplayString);
66
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleSpellCheck , new ExecutedRoutedEventHandler(OnToggleSpellCheck) , onQueryStatusNYI, SRID.KeyToggleSpellCheck, SRID.KeyToggleSpellCheckDisplayString);
67
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyInlineFlowDirectionRTL , new ExecutedRoutedEventHandler(OnApplyInlineFlowDirectionRTL), new CanExecuteRoutedEventHandler(OnQueryStatusNYI));
68
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyInlineFlowDirectionLTR , new ExecutedRoutedEventHandler(OnApplyInlineFlowDirectionLTR), new CanExecuteRoutedEventHandler(OnQueryStatusNYI));
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (2)
522
menuItem.Command =
EditingCommands
.CorrectSpellingError;
542
menuItem.Command =
EditingCommands
.IgnoreSpellingError;
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (2)
62
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.CopyFormat, new ExecutedRoutedEventHandler(OnCopyFormat), new CanExecuteRoutedEventHandler(OnQueryStatusCopyFormat), SRID.KeyCopyFormat, SRID.KeyCopyFormatDisplayString);
82
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.PasteFormat, new ExecutedRoutedEventHandler(OnPasteFormat), new CanExecuteRoutedEventHandler(OnQueryStatusPasteFormat), SRID.KeyPasteFormat, SRID.KeyPasteFormatDisplayString);
src\Framework\System\windows\Documents\TextEditorLists.cs (10)
48
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.RemoveListMarkers , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusNYI), SRID.KeyRemoveListMarkers, SRID.KeyRemoveListMarkersDisplayString);
49
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleBullets , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusNYI), SRID.KeyToggleBullets, SRID.KeyToggleBulletsDisplayString);
50
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleNumbering , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusNYI), SRID.KeyToggleNumbering, SRID.KeyToggleNumberingDisplayString);
51
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.IncreaseIndentation , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusTab), SRID.KeyIncreaseIndentation, SRID.KeyIncreaseIndentationDisplayString);
52
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.DecreaseIndentation , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusTab), SRID.KeyDecreaseIndentation, SRID.KeyDecreaseIndentationDisplayString);
152
if (args.Command ==
EditingCommands
.ToggleBullets)
156
else if (args.Command ==
EditingCommands
.ToggleNumbering)
160
else if (args.Command ==
EditingCommands
.RemoveListMarkers)
164
else if (args.Command ==
EditingCommands
.IncreaseIndentation)
168
else if (args.Command ==
EditingCommands
.DecreaseIndentation)
src\Framework\System\windows\Documents\TextEditorParagraphs.cs (9)
55
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.AlignLeft , new ExecutedRoutedEventHandler(OnAlignLeft) , onQueryStatusNYI, SRID.KeyAlignLeft, SRID.KeyAlignLeftDisplayString );
56
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.AlignCenter , new ExecutedRoutedEventHandler(OnAlignCenter) , onQueryStatusNYI, SRID.KeyAlignCenter, SRID.KeyAlignCenterDisplayString );
57
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.AlignRight , new ExecutedRoutedEventHandler(OnAlignRight) , onQueryStatusNYI, SRID.KeyAlignRight, SRID.KeyAlignRightDisplayString );
58
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.AlignJustify , new ExecutedRoutedEventHandler(OnAlignJustify) , onQueryStatusNYI, SRID.KeyAlignJustify, SRID.KeyAlignJustifyDisplayString );
59
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplySingleSpace , new ExecutedRoutedEventHandler(OnApplySingleSpace) , onQueryStatusNYI, SRID.KeyApplySingleSpace, SRID.KeyApplySingleSpaceDisplayString );
60
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyOneAndAHalfSpace , new ExecutedRoutedEventHandler(OnApplyOneAndAHalfSpace) , onQueryStatusNYI, SRID.KeyApplyOneAndAHalfSpace, SRID.KeyApplyOneAndAHalfSpaceDisplayString );
61
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyDoubleSpace , new ExecutedRoutedEventHandler(OnApplyDoubleSpace) , onQueryStatusNYI, SRID.KeyApplyDoubleSpace, SRID.KeyApplyDoubleSpaceDisplayString );
64
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyParagraphFlowDirectionLTR, new ExecutedRoutedEventHandler(OnApplyParagraphFlowDirectionLTR), onQueryStatusNYI);
65
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyParagraphFlowDirectionRTL, new ExecutedRoutedEventHandler(OnApplyParagraphFlowDirectionRTL), onQueryStatusNYI);
src\Framework\System\windows\Documents\TextEditorSelection.cs (36)
68
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveRightByCharacter, new ExecutedRoutedEventHandler(OnMoveRightByCharacter), queryStatusCaretNavigationHandler, SRID.KeyMoveRightByCharacter, SRID.KeyMoveRightByCharacterDisplayString);
69
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveLeftByCharacter, new ExecutedRoutedEventHandler(OnMoveLeftByCharacter), queryStatusCaretNavigationHandler, SRID.KeyMoveLeftByCharacter, SRID.KeyMoveLeftByCharacterDisplayString);
70
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveRightByWord, new ExecutedRoutedEventHandler(OnMoveRightByWord), queryStatusCaretNavigationHandler, SRID.KeyMoveRightByWord, SRID.KeyMoveRightByWordDisplayString);
71
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveLeftByWord, new ExecutedRoutedEventHandler(OnMoveLeftByWord), queryStatusCaretNavigationHandler, SRID.KeyMoveLeftByWord, SRID.KeyMoveLeftByWordDisplayString);
72
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveDownByLine, new ExecutedRoutedEventHandler(OnMoveDownByLine), queryStatusCaretNavigationHandler, SRID.KeyMoveDownByLine, SRID.KeyMoveDownByLineDisplayString);
73
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveUpByLine, new ExecutedRoutedEventHandler(OnMoveUpByLine), queryStatusCaretNavigationHandler, SRID.KeyMoveUpByLine, SRID.KeyMoveUpByLineDisplayString);
74
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveDownByParagraph, new ExecutedRoutedEventHandler(OnMoveDownByParagraph), queryStatusCaretNavigationHandler, SRID.KeyMoveDownByParagraph, SRID.KeyMoveDownByParagraphDisplayString);
75
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveUpByParagraph, new ExecutedRoutedEventHandler(OnMoveUpByParagraph), queryStatusCaretNavigationHandler, SRID.KeyMoveUpByParagraph, SRID.KeyMoveUpByParagraphDisplayString);
76
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveDownByPage, new ExecutedRoutedEventHandler(OnMoveDownByPage), queryStatusCaretNavigationHandler, SRID.KeyMoveDownByPage, SRID.KeyMoveDownByPageDisplayString);
77
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveUpByPage, new ExecutedRoutedEventHandler(OnMoveUpByPage), queryStatusCaretNavigationHandler, SRID.KeyMoveUpByPage, SRID.KeyMoveUpByPageDisplayString);
78
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToLineStart, new ExecutedRoutedEventHandler(OnMoveToLineStart), queryStatusCaretNavigationHandler, SRID.KeyMoveToLineStart, SRID.KeyMoveToLineStartDisplayString);
79
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToLineEnd, new ExecutedRoutedEventHandler(OnMoveToLineEnd), queryStatusCaretNavigationHandler, SRID.KeyMoveToLineEnd, SRID.KeyMoveToLineEndDisplayString);
80
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToColumnStart, nyiCommandHandler, queryStatusCaretNavigationHandler, SRID.KeyMoveToColumnStart, SRID.KeyMoveToColumnStartDisplayString);
81
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToColumnEnd, nyiCommandHandler, queryStatusCaretNavigationHandler, SRID.KeyMoveToColumnEnd, SRID.KeyMoveToColumnEndDisplayString);
82
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToWindowTop, nyiCommandHandler, queryStatusCaretNavigationHandler, SRID.KeyMoveToWindowTop, SRID.KeyMoveToWindowTopDisplayString);
83
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToWindowBottom, nyiCommandHandler, queryStatusCaretNavigationHandler, SRID.KeyMoveToWindowBottom, SRID.KeyMoveToWindowBottomDisplayString);
84
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToDocumentStart, new ExecutedRoutedEventHandler(OnMoveToDocumentStart), queryStatusCaretNavigationHandler, SRID.KeyMoveToDocumentStart, SRID.KeyMoveToDocumentStartDisplayString);
85
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToDocumentEnd, new ExecutedRoutedEventHandler(OnMoveToDocumentEnd), queryStatusCaretNavigationHandler, SRID.KeyMoveToDocumentEnd, SRID.KeyMoveToDocumentEndDisplayString);
89
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectRightByCharacter, new ExecutedRoutedEventHandler(OnSelectRightByCharacter), queryStatusKeyboardSelectionHandler, SRID.KeySelectRightByCharacter, SRID.KeySelectRightByCharacterDisplayString);
90
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectLeftByCharacter, new ExecutedRoutedEventHandler(OnSelectLeftByCharacter), queryStatusKeyboardSelectionHandler, SRID.KeySelectLeftByCharacter, SRID.KeySelectLeftByCharacterDisplayString);
91
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectRightByWord, new ExecutedRoutedEventHandler(OnSelectRightByWord), queryStatusKeyboardSelectionHandler, SRID.KeySelectRightByWord, SRID.KeySelectRightByWordDisplayString);
92
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectLeftByWord, new ExecutedRoutedEventHandler(OnSelectLeftByWord), queryStatusKeyboardSelectionHandler, SRID.KeySelectLeftByWord, SRID.KeySelectLeftByWordDisplayString);
93
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectDownByLine, new ExecutedRoutedEventHandler(OnSelectDownByLine), queryStatusKeyboardSelectionHandler, SRID.KeySelectDownByLine, SRID.KeySelectDownByLineDisplayString);
94
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectUpByLine, new ExecutedRoutedEventHandler(OnSelectUpByLine), queryStatusKeyboardSelectionHandler, SRID.KeySelectUpByLine, SRID.KeySelectUpByLineDisplayString);
95
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectDownByParagraph, new ExecutedRoutedEventHandler(OnSelectDownByParagraph), queryStatusKeyboardSelectionHandler, SRID.KeySelectDownByParagraph, SRID.KeySelectDownByParagraphDisplayString);
96
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectUpByParagraph, new ExecutedRoutedEventHandler(OnSelectUpByParagraph), queryStatusKeyboardSelectionHandler, SRID.KeySelectUpByParagraph, SRID.KeySelectUpByParagraphDisplayString);
97
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectDownByPage, new ExecutedRoutedEventHandler(OnSelectDownByPage), queryStatusKeyboardSelectionHandler, SRID.KeySelectDownByPage, SRID.KeySelectDownByPageDisplayString);
98
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectUpByPage, new ExecutedRoutedEventHandler(OnSelectUpByPage), queryStatusKeyboardSelectionHandler, SRID.KeySelectUpByPage, SRID.KeySelectUpByPageDisplayString);
99
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToLineStart, new ExecutedRoutedEventHandler(OnSelectToLineStart), queryStatusKeyboardSelectionHandler, SRID.KeySelectToLineStart, SRID.KeySelectToLineStartDisplayString);
100
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToLineEnd, new ExecutedRoutedEventHandler(OnSelectToLineEnd), queryStatusKeyboardSelectionHandler, SRID.KeySelectToLineEnd, SRID.KeySelectToLineEndDisplayString);
101
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToColumnStart, nyiCommandHandler, queryStatusKeyboardSelectionHandler, SRID.KeySelectToColumnStart, SRID.KeySelectToColumnStartDisplayString);
102
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToColumnEnd, nyiCommandHandler, queryStatusKeyboardSelectionHandler, SRID.KeySelectToColumnEnd, SRID.KeySelectToColumnEndDisplayString);
103
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToWindowTop, nyiCommandHandler, queryStatusKeyboardSelectionHandler, SRID.KeySelectToWindowTop, SRID.KeySelectToWindowTopDisplayString);
104
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToWindowBottom, nyiCommandHandler, queryStatusKeyboardSelectionHandler, SRID.KeySelectToWindowBottom, SRID.KeySelectToWindowBottomDisplayString);
105
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToDocumentStart, new ExecutedRoutedEventHandler(OnSelectToDocumentStart), queryStatusKeyboardSelectionHandler, SRID.KeySelectToDocumentStart, SRID.KeySelectToDocumentStartDisplayString);
106
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToDocumentEnd, new ExecutedRoutedEventHandler(OnSelectToDocumentEnd), queryStatusKeyboardSelectionHandler, SRID.KeySelectToDocumentEnd, SRID.KeySelectToDocumentEndDisplayString);
src\Framework\System\windows\Documents\TextEditorSpelling.cs (2)
34
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.CorrectSpellingError, new ExecutedRoutedEventHandler(OnCorrectSpellingError), new CanExecuteRoutedEventHandler(OnQueryStatusSpellingError));
35
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.IgnoreSpellingError, new ExecutedRoutedEventHandler(OnIgnoreSpellingError), new CanExecuteRoutedEventHandler(OnQueryStatusSpellingError));
src\Framework\System\windows\Documents\TextEditorTables.cs (14)
52
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.InsertTable , onTableCommand, onQueryStatusNYI, SRID.KeyInsertTable, SRID.KeyInsertTableDisplayString);
53
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.InsertRows , onTableCommand, onQueryStatusNYI, SRID.KeyInsertRows, SRID.KeyInsertRowsDisplayString);
54
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.InsertColumns , onTableCommand, onQueryStatusNYI, SRID.KeyInsertColumns, SRID.KeyInsertColumnsDisplayString);
55
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.DeleteRows , onTableCommand, onQueryStatusNYI, SRID.KeyDeleteRows, SRID.KeyDeleteRowsDisplayString);
56
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.DeleteColumns , onTableCommand, onQueryStatusNYI, SRID.KeyDeleteColumns, SRID.KeyDeleteColumnsDisplayString);
57
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MergeCells , onTableCommand, onQueryStatusNYI, SRID.KeyMergeCells, SRID.KeyMergeCellsDisplayString);
58
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SplitCell , onTableCommand, onQueryStatusNYI, SRID.KeySplitCell, SRID.KeySplitCellDisplayString);
86
if (args.Command ==
EditingCommands
.InsertTable)
90
else if (args.Command ==
EditingCommands
.InsertRows)
94
else if (args.Command ==
EditingCommands
.InsertColumns)
98
else if (args.Command ==
EditingCommands
.DeleteRows)
102
else if (args.Command ==
EditingCommands
.DeleteColumns)
106
else if (args.Command ==
EditingCommands
.MergeCells)
110
else if (args.Command ==
EditingCommands
.SplitCell)
src\Framework\System\windows\Documents\TextEditorTyping.cs (18)
82
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleInsert , new ExecutedRoutedEventHandler(OnToggleInsert) , onQueryStatusNYI , SRID.KeyToggleInsert, SRID.KeyToggleInsertDisplayString );
83
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.Delete , new ExecutedRoutedEventHandler(OnDelete) , onQueryStatusNYI , SRID.KeyDelete, SRID.KeyDeleteDisplayString );
84
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.DeleteNextWord , new ExecutedRoutedEventHandler(OnDeleteNextWord) , onQueryStatusNYI , SRID.KeyDeleteNextWord, SRID.KeyDeleteNextWordDisplayString );
85
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.DeletePreviousWord , new ExecutedRoutedEventHandler(OnDeletePreviousWord) , onQueryStatusNYI , SRID.KeyDeletePreviousWord, SRID.KeyDeletePreviousWordDisplayString );
86
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.EnterParagraphBreak , onEnterBreak , onQueryStatusEnterBreak , SRID.KeyEnterParagraphBreak, SRID.KeyEnterParagraphBreakDisplayString );
87
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.EnterLineBreak , onEnterBreak , onQueryStatusEnterBreak , SRID.KeyEnterLineBreak, SRID.KeyEnterLineBreakDisplayString );
88
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.TabForward , new ExecutedRoutedEventHandler(OnTabForward) , new CanExecuteRoutedEventHandler(OnQueryStatusTabForward) , SRID.KeyTabForward, SRID.KeyTabForwardDisplayString );
89
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.TabBackward , new ExecutedRoutedEventHandler(OnTabBackward) , new CanExecuteRoutedEventHandler(OnQueryStatusTabBackward) , SRID.KeyTabBackward, SRID.KeyTabBackwardDisplayString );
90
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.Space , onSpace , onQueryStatusNYI , SRID.KeySpace, SRID.KeySpaceDisplayString );
91
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ShiftSpace , onSpace , onQueryStatusNYI , SRID.KeyShiftSpace, SRID.KeyShiftSpaceDisplayString );
93
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.Backspace , new ExecutedRoutedEventHandler(OnBackspace) , onQueryStatusNYI , KeyGesture.CreateFromResourceStrings(SR.Get(SRID.KeyBackspace), SR.Get(SRID.KeyBackspaceDisplayString)), KeyGesture.CreateFromResourceStrings(SR.Get(SRID.KeyShiftBackspace), SR.Get(SRID.KeyShiftBackspaceDisplayString)) );
1138
if (command ==
EditingCommands
.EnterParagraphBreak)
1150
else if (command ==
EditingCommands
.EnterLineBreak)
1202
command ==
EditingCommands
.EnterParagraphBreak)
1377
EditingCommands
.IncreaseIndentation.CanExecute(null, (IInputElement)sender))
1380
EditingCommands
.IncreaseIndentation.Execute(null, (IInputElement)sender);
1409
EditingCommands
.DecreaseIndentation.CanExecute(null, (IInputElement)sender))
1412
EditingCommands
.DecreaseIndentation.Execute(null, (IInputElement)sender);
src\Framework\System\Windows\Input\Command\CommandConverter.cs (60)
213
commandType == typeof(
EditingCommands
) ||
483
if (ownerType == typeof(
EditingCommands
) || ((null == knownCommand )&& searchAll))
488
knownCommand =
EditingCommands
.ToggleInsert;
491
knownCommand =
EditingCommands
.Delete;
494
knownCommand =
EditingCommands
.Backspace;
497
knownCommand =
EditingCommands
.DeleteNextWord;
500
knownCommand =
EditingCommands
.DeletePreviousWord;
503
knownCommand =
EditingCommands
.EnterParagraphBreak;
506
knownCommand =
EditingCommands
.EnterLineBreak;
509
knownCommand =
EditingCommands
.TabForward;
512
knownCommand =
EditingCommands
.TabBackward;
515
knownCommand =
EditingCommands
.MoveRightByCharacter;
518
knownCommand =
EditingCommands
.MoveLeftByCharacter;
521
knownCommand =
EditingCommands
.MoveRightByWord;
524
knownCommand =
EditingCommands
.MoveLeftByWord;
527
knownCommand =
EditingCommands
.MoveDownByLine;
530
knownCommand =
EditingCommands
.MoveUpByLine;
533
knownCommand =
EditingCommands
.MoveDownByParagraph;
536
knownCommand =
EditingCommands
.MoveUpByParagraph;
539
knownCommand =
EditingCommands
.MoveDownByPage;
542
knownCommand =
EditingCommands
.MoveUpByPage;
545
knownCommand =
EditingCommands
.MoveToLineStart;
548
knownCommand =
EditingCommands
.MoveToLineEnd;
551
knownCommand =
EditingCommands
.MoveToDocumentStart;
554
knownCommand =
EditingCommands
.MoveToDocumentEnd;
557
knownCommand =
EditingCommands
.SelectRightByCharacter;
560
knownCommand =
EditingCommands
.SelectLeftByCharacter;
563
knownCommand =
EditingCommands
.SelectRightByWord;
566
knownCommand =
EditingCommands
.SelectLeftByWord;
569
knownCommand =
EditingCommands
.SelectDownByLine;
572
knownCommand =
EditingCommands
.SelectUpByLine;
575
knownCommand =
EditingCommands
.SelectDownByParagraph;
578
knownCommand =
EditingCommands
.SelectUpByParagraph;
581
knownCommand =
EditingCommands
.SelectDownByPage;
584
knownCommand =
EditingCommands
.SelectUpByPage;
587
knownCommand =
EditingCommands
.SelectToLineStart;
590
knownCommand =
EditingCommands
.SelectToLineEnd;
593
knownCommand =
EditingCommands
.SelectToDocumentStart;
596
knownCommand =
EditingCommands
.SelectToDocumentEnd;
599
knownCommand =
EditingCommands
.ToggleBold;
602
knownCommand =
EditingCommands
.ToggleItalic;
605
knownCommand =
EditingCommands
.ToggleUnderline;
608
knownCommand =
EditingCommands
.ToggleSubscript;
611
knownCommand =
EditingCommands
.ToggleSuperscript;
614
knownCommand =
EditingCommands
.IncreaseFontSize;
617
knownCommand =
EditingCommands
.DecreaseFontSize;
627
knownCommand =
EditingCommands
.ApplyFontSize;
630
knownCommand =
EditingCommands
.ApplyFontFamily;
633
knownCommand =
EditingCommands
.ApplyForeground;
636
knownCommand =
EditingCommands
.ApplyBackground;
641
knownCommand =
EditingCommands
.AlignLeft;
644
knownCommand =
EditingCommands
.AlignCenter;
647
knownCommand =
EditingCommands
.AlignRight;
650
knownCommand =
EditingCommands
.AlignJustify;
653
knownCommand =
EditingCommands
.ToggleBullets;
656
knownCommand =
EditingCommands
.ToggleNumbering;
659
knownCommand =
EditingCommands
.IncreaseIndentation;
662
knownCommand =
EditingCommands
.DecreaseIndentation;
665
knownCommand =
EditingCommands
.CorrectSpellingError;
668
knownCommand =
EditingCommands
.IgnoreSpellingError;