6 references to RegisterCommandHandler
PresentationFramework (6)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1370
CommandHelpers.
RegisterCommandHandler
(typeof(FlowDocumentScrollViewer), NavigationCommands.FirstPage,
1374
CommandHelpers.
RegisterCommandHandler
(typeof(FlowDocumentScrollViewer), NavigationCommands.LastPage,
src\Framework\System\windows\Documents\TextEditor.cs (1)
422
CommandHelpers.
RegisterCommandHandler
(controlType, ApplicationCommands.Undo, new ExecutedRoutedEventHandler(OnUndo), new CanExecuteRoutedEventHandler(OnQueryStatusUndo), KeyGesture.CreateFromResourceStrings(SR.Get(SRID.KeyUndo), SR.Get(SRID.KeyUndoDisplayString)), KeyGesture.CreateFromResourceStrings(SR.Get(SRID.KeyAltUndo), SR.Get(SRID.KeyAltUndoDisplayString)));
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (2)
59
CommandHelpers.
RegisterCommandHandler
(controlType, ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnCopy), new CanExecuteRoutedEventHandler(OnQueryStatusCopy), KeyGesture.CreateFromResourceStrings(SR.Get(SRID.KeyCopy), SR.Get(SRID.KeyCopyDisplayString)), KeyGesture.CreateFromResourceStrings(SR.Get(SRID.KeyCtrlInsert), SR.Get(SRID.KeyCtrlInsertDisplayString)));
66
CommandHelpers.
RegisterCommandHandler
(controlType, ApplicationCommands.Cut, new ExecutedRoutedEventHandler(OnCut), new CanExecuteRoutedEventHandler(OnQueryStatusCut), KeyGesture.CreateFromResourceStrings(SR.Get(SRID.KeyCut), SR.Get(SRID.KeyCutDisplayString)), KeyGesture.CreateFromResourceStrings(SR.Get(SRID.KeyShiftDelete), SR.Get(SRID.KeyShiftDeleteDisplayString)));
src\Framework\System\windows\Documents\TextEditorTyping.cs (1)
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)) );