57 references to RegisterCommandHandler
PresentationFramework (57)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
61
CommandHelpers.
RegisterCommandHandler
(typeof(RootBrowserWindow), ApplicationCommands.Print,
src\Framework\System\Windows\Controls\DocumentViewer.cs (7)
1521
CommandHelpers.
RegisterCommandHandler
( typeof(DocumentViewer),
1551
CommandHelpers.
RegisterCommandHandler
(typeof(DocumentViewer),
1566
CommandHelpers.
RegisterCommandHandler
(typeof(DocumentViewer),
1576
CommandHelpers.
RegisterCommandHandler
(typeof(DocumentViewer),
1602
CommandHelpers.
RegisterCommandHandler
(typeof(DocumentViewer),
1611
CommandHelpers.
RegisterCommandHandler
(typeof(DocumentViewer),
1656
CommandHelpers.
RegisterCommandHandler
(typeof(DocumentViewer),
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (7)
1346
CommandHelpers.
RegisterCommandHandler
(typeof(FlowDocumentReader), ApplicationCommands.Find,
1350
CommandHelpers.
RegisterCommandHandler
(typeof(FlowDocumentReader), ApplicationCommands.Print,
1354
CommandHelpers.
RegisterCommandHandler
(typeof(FlowDocumentReader), ApplicationCommands.CancelPrint,
1358
CommandHelpers.
RegisterCommandHandler
(typeof(FlowDocumentReader), NavigationCommands.PreviousPage,
1362
CommandHelpers.
RegisterCommandHandler
(typeof(FlowDocumentReader), NavigationCommands.NextPage,
1366
CommandHelpers.
RegisterCommandHandler
(typeof(FlowDocumentReader), NavigationCommands.FirstPage,
1370
CommandHelpers.
RegisterCommandHandler
(typeof(FlowDocumentReader), NavigationCommands.LastPage,
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (3)
1350
CommandHelpers.
RegisterCommandHandler
(typeof(FlowDocumentScrollViewer), ApplicationCommands.Find,
1354
CommandHelpers.
RegisterCommandHandler
(typeof(FlowDocumentScrollViewer), ApplicationCommands.Print,
1358
CommandHelpers.
RegisterCommandHandler
(typeof(FlowDocumentScrollViewer), ApplicationCommands.CancelPrint,
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
97
CommandHelpers.
RegisterCommandHandler
(ownerType, ApplicationCommands.Delete,
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (6)
1476
CommandHelpers.
RegisterCommandHandler
(typeof(DocumentViewerBase), NavigationCommands.PreviousPage,
1480
CommandHelpers.
RegisterCommandHandler
(typeof(DocumentViewerBase), NavigationCommands.NextPage,
1484
CommandHelpers.
RegisterCommandHandler
(typeof(DocumentViewerBase), NavigationCommands.FirstPage,
1488
CommandHelpers.
RegisterCommandHandler
(typeof(DocumentViewerBase), NavigationCommands.LastPage,
1492
CommandHelpers.
RegisterCommandHandler
(typeof(DocumentViewerBase), NavigationCommands.GoToPage,
1500
CommandHelpers.
RegisterCommandHandler
(typeof(DocumentViewerBase), ApplicationCommands.CancelPrint,
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (3)
705
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollBar), ScrollBar.ScrollHereCommand, onScrollCommand, new CanExecuteRoutedEventHandler(OnQueryScrollHereCommand));
716
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollBar), ScrollBar.PageLeftCommand, onScrollCommand, onQueryScrollCommand);
717
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollBar), ScrollBar.PageRightCommand, onScrollCommand, onQueryScrollCommand);
src\Framework\System\Windows\Controls\ScrollViewer.cs (20)
2676
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.LineLeftCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2677
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.LineRightCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2678
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.PageLeftCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2679
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.PageRightCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2680
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.LineUpCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2681
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.LineDownCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2682
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.PageUpCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2683
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.PageDownCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2684
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.ScrollToLeftEndCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2685
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.ScrollToRightEndCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2686
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.ScrollToEndCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2687
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.ScrollToHomeCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2688
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.ScrollToTopCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2689
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.ScrollToBottomCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2690
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.ScrollToHorizontalOffsetCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2691
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.ScrollToVerticalOffsetCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2692
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.DeferScrollToHorizontalOffsetCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2693
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ScrollBar.DeferScrollToVerticalOffsetCommand, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2695
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ComponentCommands.ScrollPageUp, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
2696
CommandHelpers.
RegisterCommandHandler
(typeof(ScrollViewer), ComponentCommands.ScrollPageDown, executeScrollCommandEventHandler, canExecuteScrollCommandEventHandler);
src\Framework\System\Windows\Controls\SinglePageViewer.cs (1)
1268
CommandHelpers.
RegisterCommandHandler
(typeof(FlowDocumentPageViewer), ApplicationCommands.Find,
src\Framework\System\Windows\Controls\StickyNote.cs (2)
127
CommandHelpers.
RegisterCommandHandler
(typeof(StickyNoteControl), StickyNoteControl.DeleteNoteCommand,
129
CommandHelpers.
RegisterCommandHandler
(typeof(StickyNoteControl), StickyNoteControl.InkCommand,
src\Framework\System\windows\Documents\TextEditorCharacters.cs (2)
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\TextEditorParagraphs.cs (2)
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\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));