174 references to EditingCommands
PresentationFramework (174)
MS\Internal\AppModel\OleCmdHelper.cs (2)
255
new CommandWithArgument(System.Windows.Documents.
EditingCommands
.Backspace));
257
new CommandWithArgument(System.Windows.Documents.
EditingCommands
.Delete));
System\Windows\Controls\TextBox.cs (2)
80
CommandHelpers.RegisterCommandHandler(typeof(TextBox),
EditingCommands
.Clear, OnClearCommand, new CanExecuteRoutedEventHandler(OnCanExecuteClearCommand));
960
new PropertyMetadata(
EditingCommands
.Clear)
System\Windows\Documents\EditingCommands.cs (1)
460
command = new RoutedUICommand(commandPropertyName, commandPropertyName, typeof(
EditingCommands
));
System\windows\Documents\TextEditorCharacters.cs (15)
51
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ResetFormat , new ExecutedRoutedEventHandler(OnResetFormat) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyResetFormat, nameof(SR.KeyResetFormatDisplayString)));
52
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleBold , new ExecutedRoutedEventHandler(OnToggleBold) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyToggleBold, nameof(SR.KeyToggleBoldDisplayString)));
53
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleItalic , new ExecutedRoutedEventHandler(OnToggleItalic) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyToggleItalic, nameof(SR.KeyToggleItalicDisplayString)));
54
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleUnderline , new ExecutedRoutedEventHandler(OnToggleUnderline) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyToggleUnderline, nameof(SR.KeyToggleUnderlineDisplayString)));
55
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleSubscript , new ExecutedRoutedEventHandler(OnToggleSubscript) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyToggleSubscript, nameof(SR.KeyToggleSubscriptDisplayString)));
56
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleSuperscript , new ExecutedRoutedEventHandler(OnToggleSuperscript) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyToggleSuperscript, nameof(SR.KeyToggleSuperscriptDisplayString)));
57
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.IncreaseFontSize , new ExecutedRoutedEventHandler(OnIncreaseFontSize) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyIncreaseFontSize, nameof(SR.KeyIncreaseFontSizeDisplayString)));
58
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.DecreaseFontSize , new ExecutedRoutedEventHandler(OnDecreaseFontSize) , onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyDecreaseFontSize, nameof(SR.KeyDecreaseFontSizeDisplayString)));
60
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyFontSize , new ExecutedRoutedEventHandler(OnApplyFontSize) , onQueryStatusNYI, nameof(SR.KeyApplyFontSize), nameof(SR.KeyApplyFontSizeDisplayString));
61
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyFontFamily , new ExecutedRoutedEventHandler(OnApplyFontFamily) , onQueryStatusNYI, nameof(SR.KeyApplyFontFamily), nameof(SR.KeyApplyFontFamilyDisplayString));
62
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyForeground , new ExecutedRoutedEventHandler(OnApplyForeground) , onQueryStatusNYI, nameof(SR.KeyApplyForeground), nameof(SR.KeyApplyForegroundDisplayString));
63
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyBackground , new ExecutedRoutedEventHandler(OnApplyBackground) , onQueryStatusNYI, nameof(SR.KeyApplyBackground), nameof(SR.KeyApplyBackgroundDisplayString));
64
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleSpellCheck , new ExecutedRoutedEventHandler(OnToggleSpellCheck) , onQueryStatusNYI, nameof(SR.KeyToggleSpellCheck), nameof(SR.KeyToggleSpellCheckDisplayString));
65
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyInlineFlowDirectionRTL , new ExecutedRoutedEventHandler(OnApplyInlineFlowDirectionRTL), new CanExecuteRoutedEventHandler(OnQueryStatusNYI));
66
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyInlineFlowDirectionLTR , new ExecutedRoutedEventHandler(OnApplyInlineFlowDirectionLTR), new CanExecuteRoutedEventHandler(OnQueryStatusNYI));
System\windows\Documents\TextEditorContextMenu.cs (2)
496
menuItem.Command =
EditingCommands
.CorrectSpellingError;
516
menuItem.Command =
EditingCommands
.IgnoreSpellingError;
System\windows\Documents\TextEditorCopyPaste.cs (2)
53
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.CopyFormat, new ExecutedRoutedEventHandler(OnCopyFormat), new CanExecuteRoutedEventHandler(OnQueryStatusCopyFormat), KeyGesture.CreateFromResourceStrings(KeyCopyFormat, nameof(SR.KeyCopyFormatDisplayString)));
65
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.PasteFormat, new ExecutedRoutedEventHandler(OnPasteFormat), new CanExecuteRoutedEventHandler(OnQueryStatusPasteFormat), KeyPasteFormat, nameof(SR.KeyPasteFormatDisplayString));
System\windows\Documents\TextEditorLists.cs (10)
46
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.RemoveListMarkers , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusNYI), KeyGesture.CreateFromResourceStrings(KeyRemoveListMarkers, nameof(SR.KeyRemoveListMarkersDisplayString)));
47
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleBullets , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusNYI), KeyGesture.CreateFromResourceStrings(KeyToggleBullets, nameof(SR.KeyToggleBulletsDisplayString)));
48
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleNumbering , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusNYI), KeyGesture.CreateFromResourceStrings(KeyToggleNumbering, nameof(SR.KeyToggleNumberingDisplayString)));
49
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.IncreaseIndentation , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusTab), KeyGesture.CreateFromResourceStrings(KeyIncreaseIndentation, nameof(SR.KeyIncreaseIndentationDisplayString)));
50
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.DecreaseIndentation , new ExecutedRoutedEventHandler(OnListCommand) , new CanExecuteRoutedEventHandler(OnQueryStatusTab), KeyGesture.CreateFromResourceStrings(KeyDecreaseIndentation, nameof(SR.KeyDecreaseIndentationDisplayString)));
150
if (args.Command ==
EditingCommands
.ToggleBullets)
154
else if (args.Command ==
EditingCommands
.ToggleNumbering)
158
else if (args.Command ==
EditingCommands
.RemoveListMarkers)
162
else if (args.Command ==
EditingCommands
.IncreaseIndentation)
166
else if (args.Command ==
EditingCommands
.DecreaseIndentation)
System\windows\Documents\TextEditorParagraphs.cs (9)
54
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.AlignLeft, new ExecutedRoutedEventHandler(OnAlignLeft), onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyAlignLeft, nameof(SR.KeyAlignLeftDisplayString)));
55
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.AlignCenter, new ExecutedRoutedEventHandler(OnAlignCenter), onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyAlignCenter, nameof(SR.KeyAlignCenterDisplayString)));
56
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.AlignRight, new ExecutedRoutedEventHandler(OnAlignRight), onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyAlignRight, nameof(SR.KeyAlignRightDisplayString)));
57
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.AlignJustify, new ExecutedRoutedEventHandler(OnAlignJustify), onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyAlignJustify, nameof(SR.KeyAlignJustifyDisplayString)));
58
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplySingleSpace, new ExecutedRoutedEventHandler(OnApplySingleSpace), onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyApplySingleSpace, nameof(SR.KeyApplySingleSpaceDisplayString)));
59
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyOneAndAHalfSpace, new ExecutedRoutedEventHandler(OnApplyOneAndAHalfSpace), onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyApplyOneAndAHalfSpace, nameof(SR.KeyApplyOneAndAHalfSpaceDisplayString)));
60
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyDoubleSpace, new ExecutedRoutedEventHandler(OnApplyDoubleSpace), onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyApplyDoubleSpace, nameof(SR.KeyApplyDoubleSpaceDisplayString)));
63
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyParagraphFlowDirectionLTR, new ExecutedRoutedEventHandler(OnApplyParagraphFlowDirectionLTR), onQueryStatusNYI);
64
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ApplyParagraphFlowDirectionRTL, new ExecutedRoutedEventHandler(OnApplyParagraphFlowDirectionRTL), onQueryStatusNYI);
System\windows\Documents\TextEditorSelection.cs (36)
60
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveRightByCharacter, new ExecutedRoutedEventHandler(OnMoveRightByCharacter), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveRightByCharacter, nameof(SR.KeyMoveRightByCharacterDisplayString)));
61
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveLeftByCharacter, new ExecutedRoutedEventHandler(OnMoveLeftByCharacter), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveLeftByCharacter, nameof(SR.KeyMoveLeftByCharacterDisplayString)));
62
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveRightByWord, new ExecutedRoutedEventHandler(OnMoveRightByWord), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveRightByWord, nameof(SR.KeyMoveRightByWordDisplayString)));
63
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveLeftByWord, new ExecutedRoutedEventHandler(OnMoveLeftByWord), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveLeftByWord, nameof(SR.KeyMoveLeftByWordDisplayString)));
64
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveDownByLine, new ExecutedRoutedEventHandler(OnMoveDownByLine), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveDownByLine, nameof(SR.KeyMoveDownByLineDisplayString)));
65
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveUpByLine, new ExecutedRoutedEventHandler(OnMoveUpByLine), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveUpByLine, nameof(SR.KeyMoveUpByLineDisplayString)));
66
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveDownByParagraph, new ExecutedRoutedEventHandler(OnMoveDownByParagraph), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveDownByParagraph, nameof(SR.KeyMoveDownByParagraphDisplayString)));
67
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveUpByParagraph, new ExecutedRoutedEventHandler(OnMoveUpByParagraph), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveUpByParagraph, nameof(SR.KeyMoveUpByParagraphDisplayString)));
68
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveDownByPage, new ExecutedRoutedEventHandler(OnMoveDownByPage), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveDownByPage, nameof(SR.KeyMoveDownByPageDisplayString)));
69
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveUpByPage, new ExecutedRoutedEventHandler(OnMoveUpByPage), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveUpByPage, nameof(SR.KeyMoveUpByPageDisplayString)));
70
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToLineStart, new ExecutedRoutedEventHandler(OnMoveToLineStart), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToLineStart, nameof(SR.KeyMoveToLineStartDisplayString)));
71
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToLineEnd, new ExecutedRoutedEventHandler(OnMoveToLineEnd), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToLineEnd, nameof(SR.KeyMoveToLineEndDisplayString)));
72
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToColumnStart, nyiCommandHandler, queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToColumnStart, nameof(SR.KeyMoveToColumnStartDisplayString)));
73
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToColumnEnd, nyiCommandHandler, queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToColumnEnd, nameof(SR.KeyMoveToColumnEndDisplayString)));
74
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToWindowTop, nyiCommandHandler, queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToWindowTop, nameof(SR.KeyMoveToWindowTopDisplayString)));
75
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToWindowBottom, nyiCommandHandler, queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToWindowBottom, nameof(SR.KeyMoveToWindowBottomDisplayString)));
76
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToDocumentStart, new ExecutedRoutedEventHandler(OnMoveToDocumentStart), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToDocumentStart, nameof(SR.KeyMoveToDocumentStartDisplayString)));
77
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MoveToDocumentEnd, new ExecutedRoutedEventHandler(OnMoveToDocumentEnd), queryStatusCaretNavigationHandler, KeyGesture.CreateFromResourceStrings(KeyMoveToDocumentEnd, nameof(SR.KeyMoveToDocumentEndDisplayString)));
81
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectRightByCharacter, new ExecutedRoutedEventHandler(OnSelectRightByCharacter), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectRightByCharacter, nameof(SR.KeySelectRightByCharacterDisplayString)));
82
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectLeftByCharacter, new ExecutedRoutedEventHandler(OnSelectLeftByCharacter), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectLeftByCharacter, nameof(SR.KeySelectLeftByCharacterDisplayString)));
83
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectRightByWord, new ExecutedRoutedEventHandler(OnSelectRightByWord), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectRightByWord, nameof(SR.KeySelectRightByWordDisplayString)));
84
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectLeftByWord, new ExecutedRoutedEventHandler(OnSelectLeftByWord), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectLeftByWord, nameof(SR.KeySelectLeftByWordDisplayString)));
85
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectDownByLine, new ExecutedRoutedEventHandler(OnSelectDownByLine), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectDownByLine, nameof(SR.KeySelectDownByLineDisplayString)));
86
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectUpByLine, new ExecutedRoutedEventHandler(OnSelectUpByLine), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectUpByLine, nameof(SR.KeySelectUpByLineDisplayString)));
87
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectDownByParagraph, new ExecutedRoutedEventHandler(OnSelectDownByParagraph), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectDownByParagraph, nameof(SR.KeySelectDownByParagraphDisplayString)));
88
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectUpByParagraph, new ExecutedRoutedEventHandler(OnSelectUpByParagraph), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectUpByParagraph, nameof(SR.KeySelectUpByParagraphDisplayString)));
89
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectDownByPage, new ExecutedRoutedEventHandler(OnSelectDownByPage), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectDownByPage, nameof(SR.KeySelectDownByPageDisplayString)));
90
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectUpByPage, new ExecutedRoutedEventHandler(OnSelectUpByPage), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectUpByPage, nameof(SR.KeySelectUpByPageDisplayString)));
91
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToLineStart, new ExecutedRoutedEventHandler(OnSelectToLineStart), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToLineStart, nameof(SR.KeySelectToLineStartDisplayString)));
92
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToLineEnd, new ExecutedRoutedEventHandler(OnSelectToLineEnd), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToLineEnd, nameof(SR.KeySelectToLineEndDisplayString)));
93
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToColumnStart, nyiCommandHandler, queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToColumnStart, nameof(SR.KeySelectToColumnStartDisplayString)));
94
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToColumnEnd, nyiCommandHandler, queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToColumnEnd, nameof(SR.KeySelectToColumnEndDisplayString)));
95
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToWindowTop, nyiCommandHandler, queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToWindowTop, nameof(SR.KeySelectToWindowTopDisplayString)));
96
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToWindowBottom, nyiCommandHandler, queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToWindowBottom, nameof(SR.KeySelectToWindowBottomDisplayString)));
97
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToDocumentStart, new ExecutedRoutedEventHandler(OnSelectToDocumentStart), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToDocumentStart, nameof(SR.KeySelectToDocumentStartDisplayString)));
98
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SelectToDocumentEnd, new ExecutedRoutedEventHandler(OnSelectToDocumentEnd), queryStatusKeyboardSelectionHandler, KeyGesture.CreateFromResourceStrings(KeySelectToDocumentEnd, nameof(SR.KeySelectToDocumentEndDisplayString)));
System\windows\Documents\TextEditorSpelling.cs (2)
32
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.CorrectSpellingError, new ExecutedRoutedEventHandler(OnCorrectSpellingError), new CanExecuteRoutedEventHandler(OnQueryStatusSpellingError));
33
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.IgnoreSpellingError, new ExecutedRoutedEventHandler(OnIgnoreSpellingError), new CanExecuteRoutedEventHandler(OnQueryStatusSpellingError));
System\windows\Documents\TextEditorTables.cs (14)
50
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.InsertTable , onTableCommand, onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyInsertTable, nameof(SR.KeyInsertTableDisplayString)));
51
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.InsertRows , onTableCommand, onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyInsertRows, nameof(SR.KeyInsertRowsDisplayString)));
52
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.InsertColumns , onTableCommand, onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyInsertColumns, nameof(SR.KeyInsertColumnsDisplayString)));
53
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.DeleteRows , onTableCommand, onQueryStatusNYI, nameof(SR.KeyDeleteRows), nameof(SR.KeyDeleteRowsDisplayString));
54
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.DeleteColumns , onTableCommand, onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyDeleteColumns, nameof(SR.KeyDeleteColumnsDisplayString)));
55
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.MergeCells , onTableCommand, onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeyMergeCells, nameof(SR.KeyMergeCellsDisplayString)));
56
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.SplitCell , onTableCommand, onQueryStatusNYI, KeyGesture.CreateFromResourceStrings(KeySplitCell, nameof(SR.KeySplitCellDisplayString)));
84
if (args.Command ==
EditingCommands
.InsertTable)
88
else if (args.Command ==
EditingCommands
.InsertRows)
92
else if (args.Command ==
EditingCommands
.InsertColumns)
96
else if (args.Command ==
EditingCommands
.DeleteRows)
100
else if (args.Command ==
EditingCommands
.DeleteColumns)
104
else if (args.Command ==
EditingCommands
.MergeCells)
108
else if (args.Command ==
EditingCommands
.SplitCell)
System\windows\Documents\TextEditorTyping.cs (18)
79
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ToggleInsert , new ExecutedRoutedEventHandler(OnToggleInsert) , onQueryStatusNYI , KeyGesture.CreateFromResourceStrings(KeyToggleInsert, nameof(SR.KeyToggleInsertDisplayString) ));
80
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.Delete , new ExecutedRoutedEventHandler(OnDelete) , onQueryStatusNYI , KeyGesture.CreateFromResourceStrings(KeyDelete, nameof(SR.KeyDeleteDisplayString) ));
81
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.DeleteNextWord , new ExecutedRoutedEventHandler(OnDeleteNextWord) , onQueryStatusNYI , KeyGesture.CreateFromResourceStrings(KeyDeleteNextWord, nameof(SR.KeyDeleteNextWordDisplayString) ));
82
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.DeletePreviousWord , new ExecutedRoutedEventHandler(OnDeletePreviousWord) , onQueryStatusNYI , KeyGesture.CreateFromResourceStrings(KeyDeletePreviousWord, nameof(SR.KeyDeletePreviousWordDisplayString) ));
83
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.EnterParagraphBreak , onEnterBreak , onQueryStatusEnterBreak , KeyGesture.CreateFromResourceStrings(KeyEnterParagraphBreak, nameof(SR.KeyEnterParagraphBreakDisplayString) ));
84
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.EnterLineBreak , onEnterBreak , onQueryStatusEnterBreak , KeyGesture.CreateFromResourceStrings(KeyEnterLineBreak, nameof(SR.KeyEnterLineBreakDisplayString) ));
85
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.TabForward , new ExecutedRoutedEventHandler(OnTabForward) , new CanExecuteRoutedEventHandler(OnQueryStatusTabForward) , KeyGesture.CreateFromResourceStrings(KeyTabForward, nameof(SR.KeyTabForwardDisplayString) ));
86
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.TabBackward , new ExecutedRoutedEventHandler(OnTabBackward) , new CanExecuteRoutedEventHandler(OnQueryStatusTabBackward) , KeyGesture.CreateFromResourceStrings(KeyTabBackward, nameof(SR.KeyTabBackwardDisplayString) ));
87
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.Space , onSpace , onQueryStatusNYI , KeyGesture.CreateFromResourceStrings(KeySpace, nameof(SR.KeySpaceDisplayString) ));
88
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.ShiftSpace , onSpace , onQueryStatusNYI , KeyGesture.CreateFromResourceStrings(KeyShiftSpace, nameof(SR.KeyShiftSpaceDisplayString) ));
90
CommandHelpers.RegisterCommandHandler(controlType,
EditingCommands
.Backspace , new ExecutedRoutedEventHandler(OnBackspace) , onQueryStatusNYI , KeyGesture.CreateFromResourceStrings(KeyBackspace, SR.KeyBackspaceDisplayString), KeyGesture.CreateFromResourceStrings(KeyShiftBackspace, SR.KeyShiftBackspaceDisplayString) );
1121
if (command ==
EditingCommands
.EnterParagraphBreak)
1133
else if (command ==
EditingCommands
.EnterLineBreak)
1185
command ==
EditingCommands
.EnterParagraphBreak)
1360
EditingCommands
.IncreaseIndentation.CanExecute(null, (IInputElement)sender))
1363
EditingCommands
.IncreaseIndentation.Execute(null, (IInputElement)sender);
1392
EditingCommands
.DecreaseIndentation.CanExecute(null, (IInputElement)sender))
1395
EditingCommands
.DecreaseIndentation.Execute(null, (IInputElement)sender);
System\Windows\Input\Command\CommandConverter.cs (61)
203
commandType == typeof(
EditingCommands
) ||
470
if (ownerType == typeof(
EditingCommands
) || ((null == knownCommand )&& searchAll))
475
knownCommand =
EditingCommands
.ToggleInsert;
478
knownCommand =
EditingCommands
.Delete;
481
knownCommand =
EditingCommands
.Backspace;
484
knownCommand =
EditingCommands
.DeleteNextWord;
487
knownCommand =
EditingCommands
.DeletePreviousWord;
490
knownCommand =
EditingCommands
.EnterParagraphBreak;
493
knownCommand =
EditingCommands
.EnterLineBreak;
496
knownCommand =
EditingCommands
.TabForward;
499
knownCommand =
EditingCommands
.TabBackward;
502
knownCommand =
EditingCommands
.MoveRightByCharacter;
505
knownCommand =
EditingCommands
.MoveLeftByCharacter;
508
knownCommand =
EditingCommands
.MoveRightByWord;
511
knownCommand =
EditingCommands
.MoveLeftByWord;
514
knownCommand =
EditingCommands
.MoveDownByLine;
517
knownCommand =
EditingCommands
.MoveUpByLine;
520
knownCommand =
EditingCommands
.MoveDownByParagraph;
523
knownCommand =
EditingCommands
.MoveUpByParagraph;
526
knownCommand =
EditingCommands
.MoveDownByPage;
529
knownCommand =
EditingCommands
.MoveUpByPage;
532
knownCommand =
EditingCommands
.MoveToLineStart;
535
knownCommand =
EditingCommands
.MoveToLineEnd;
538
knownCommand =
EditingCommands
.MoveToDocumentStart;
541
knownCommand =
EditingCommands
.MoveToDocumentEnd;
544
knownCommand =
EditingCommands
.SelectRightByCharacter;
547
knownCommand =
EditingCommands
.SelectLeftByCharacter;
550
knownCommand =
EditingCommands
.SelectRightByWord;
553
knownCommand =
EditingCommands
.SelectLeftByWord;
556
knownCommand =
EditingCommands
.SelectDownByLine;
559
knownCommand =
EditingCommands
.SelectUpByLine;
562
knownCommand =
EditingCommands
.SelectDownByParagraph;
565
knownCommand =
EditingCommands
.SelectUpByParagraph;
568
knownCommand =
EditingCommands
.SelectDownByPage;
571
knownCommand =
EditingCommands
.SelectUpByPage;
574
knownCommand =
EditingCommands
.SelectToLineStart;
577
knownCommand =
EditingCommands
.SelectToLineEnd;
580
knownCommand =
EditingCommands
.SelectToDocumentStart;
583
knownCommand =
EditingCommands
.SelectToDocumentEnd;
586
knownCommand =
EditingCommands
.ToggleBold;
589
knownCommand =
EditingCommands
.ToggleItalic;
592
knownCommand =
EditingCommands
.ToggleUnderline;
595
knownCommand =
EditingCommands
.ToggleSubscript;
598
knownCommand =
EditingCommands
.ToggleSuperscript;
601
knownCommand =
EditingCommands
.IncreaseFontSize;
604
knownCommand =
EditingCommands
.DecreaseFontSize;
614
knownCommand =
EditingCommands
.ApplyFontSize;
617
knownCommand =
EditingCommands
.ApplyFontFamily;
620
knownCommand =
EditingCommands
.ApplyForeground;
623
knownCommand =
EditingCommands
.ApplyBackground;
628
knownCommand =
EditingCommands
.AlignLeft;
631
knownCommand =
EditingCommands
.AlignCenter;
634
knownCommand =
EditingCommands
.AlignRight;
637
knownCommand =
EditingCommands
.AlignJustify;
640
knownCommand =
EditingCommands
.ToggleBullets;
643
knownCommand =
EditingCommands
.ToggleNumbering;
646
knownCommand =
EditingCommands
.IncreaseIndentation;
649
knownCommand =
EditingCommands
.DecreaseIndentation;
652
knownCommand =
EditingCommands
.CorrectSpellingError;
655
knownCommand =
EditingCommands
.IgnoreSpellingError;
750
VerifyCommandDoesntExist( typeof(
EditingCommands
), localName );