51 references to CommandBinding
PresentationCore (2)
System\Windows\Input\Command\CommandBinding.cs (2)
42
:
this
(command, null, null)
52
:
this
(command, executed, null)
PresentationFramework (32)
MS\Internal\Commands\CommandHelpers.cs (1)
107
CommandManager.RegisterClassCommandBinding(controlType, new
CommandBinding
(command, executedRoutedEventHandler, canExecuteRoutedEventHandler));
System\Windows\Annotations\AnnotationService.cs (18)
59
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new
CommandBinding
(CreateHighlightCommand, AnnotationHelper.OnCreateHighlightCommand, AnnotationHelper.OnQueryCreateHighlightCommand));
61
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new
CommandBinding
(CreateTextStickyNoteCommand, AnnotationHelper.OnCreateTextStickyNoteCommand, AnnotationHelper.OnQueryCreateTextStickyNoteCommand));
63
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new
CommandBinding
(CreateInkStickyNoteCommand, AnnotationHelper.OnCreateInkStickyNoteCommand, AnnotationHelper.OnQueryCreateInkStickyNoteCommand));
65
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new
CommandBinding
(ClearHighlightsCommand, AnnotationHelper.OnClearHighlightsCommand, AnnotationHelper.OnQueryClearHighlightsCommand));
67
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new
CommandBinding
(DeleteStickyNotesCommand, AnnotationHelper.OnDeleteStickyNotesCommand, AnnotationHelper.OnQueryDeleteStickyNotesCommand));
69
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new
CommandBinding
(DeleteAnnotationsCommand, AnnotationHelper.OnDeleteAnnotationsCommand, AnnotationHelper.OnQueryDeleteAnnotationsCommand));
71
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new
CommandBinding
(CreateHighlightCommand, AnnotationHelper.OnCreateHighlightCommand, AnnotationHelper.OnQueryCreateHighlightCommand));
73
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new
CommandBinding
(CreateTextStickyNoteCommand, AnnotationHelper.OnCreateTextStickyNoteCommand, AnnotationHelper.OnQueryCreateTextStickyNoteCommand));
75
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new
CommandBinding
(CreateInkStickyNoteCommand, AnnotationHelper.OnCreateInkStickyNoteCommand, AnnotationHelper.OnQueryCreateInkStickyNoteCommand));
77
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new
CommandBinding
(ClearHighlightsCommand, AnnotationHelper.OnClearHighlightsCommand, AnnotationHelper.OnQueryClearHighlightsCommand));
79
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new
CommandBinding
(DeleteStickyNotesCommand, AnnotationHelper.OnDeleteStickyNotesCommand, AnnotationHelper.OnQueryDeleteStickyNotesCommand));
81
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new
CommandBinding
(DeleteAnnotationsCommand, AnnotationHelper.OnDeleteAnnotationsCommand, AnnotationHelper.OnQueryDeleteAnnotationsCommand));
83
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new
CommandBinding
(CreateHighlightCommand, AnnotationHelper.OnCreateHighlightCommand, AnnotationHelper.OnQueryCreateHighlightCommand));
85
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new
CommandBinding
(CreateTextStickyNoteCommand, AnnotationHelper.OnCreateTextStickyNoteCommand, AnnotationHelper.OnQueryCreateTextStickyNoteCommand));
87
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new
CommandBinding
(CreateInkStickyNoteCommand, AnnotationHelper.OnCreateInkStickyNoteCommand, AnnotationHelper.OnQueryCreateInkStickyNoteCommand));
89
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new
CommandBinding
(ClearHighlightsCommand, AnnotationHelper.OnClearHighlightsCommand, AnnotationHelper.OnQueryClearHighlightsCommand));
91
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new
CommandBinding
(DeleteStickyNotesCommand, AnnotationHelper.OnDeleteStickyNotesCommand, AnnotationHelper.OnQueryDeleteStickyNotesCommand));
93
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new
CommandBinding
(DeleteAnnotationsCommand, AnnotationHelper.OnDeleteAnnotationsCommand, AnnotationHelper.OnQueryDeleteAnnotationsCommand));
System\Windows\Controls\DataGrid.cs (6)
61
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(BeginEditCommand, new ExecutedRoutedEventHandler(OnExecutedBeginEdit), new CanExecuteRoutedEventHandler(OnCanExecuteBeginEdit)));
63
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(CommitEditCommand, new ExecutedRoutedEventHandler(OnExecutedCommitEdit), new CanExecuteRoutedEventHandler(OnCanExecuteCommitEdit)));
66
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(CancelEditCommand, new ExecutedRoutedEventHandler(OnExecutedCancelEdit), new CanExecuteRoutedEventHandler(OnCanExecuteCancelEdit)));
68
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(SelectAllCommand, new ExecutedRoutedEventHandler(OnExecutedSelectAll), new CanExecuteRoutedEventHandler(OnCanExecuteSelectAll)));
70
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(DeleteCommand, new ExecutedRoutedEventHandler(OnExecutedDelete), new CanExecuteRoutedEventHandler(OnCanExecuteDelete)));
73
CommandManager.RegisterClassCommandBinding(typeof(DataGrid), new
CommandBinding
(ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnExecutedCopy), new CanExecuteRoutedEventHandler(OnCanExecuteCopy)));
System\Windows\Controls\Frame.cs (3)
1362
AddCommandBinding(new
CommandBinding
(NavigationCommands.BrowseBack, OnGoBack, OnQueryGoBack));
1363
AddCommandBinding(new
CommandBinding
(NavigationCommands.BrowseForward, OnGoForward, OnQueryGoForward));
1365
AddCommandBinding(new
CommandBinding
(NavigationCommands.Refresh, OnRefresh, OnQueryRefresh));
System\Windows\Navigation\NavigationWindow.cs (4)
176
new
CommandBinding
(
183
new
CommandBinding
(
194
new
CommandBinding
(
201
new
CommandBinding
(
PresentationUI (5)
InstallationError.xaml.cs (1)
25
new
CommandBinding
(NavigationCommands.Refresh,
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
2134
new
CommandBinding
(command, executeHandler, queryEnabledHandler));
TenFeetInstallationError.xaml.cs (1)
32
new
CommandBinding
(NavigationCommands.Refresh,
TenFeetInstallationProgress.xaml.cs (2)
33
new
CommandBinding
(NavigationCommands.Refresh,
38
new
CommandBinding
(NavigationCommands.BrowseStop,
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (6)
108
new
CommandBinding
(RibbonCommands.AddToQuickAccessToolBarCommand, AddToQATExecuted, AddToQATCanExecute));
110
new
CommandBinding
(RibbonCommands.MaximizeRibbonCommand, MaximizeRibbonExecuted, MaximizeRibbonCanExecute));
112
new
CommandBinding
(RibbonCommands.MinimizeRibbonCommand, MinimizeRibbonExecuted, MinimizeRibbonCanExecute));
114
new
CommandBinding
(RibbonCommands.RemoveFromQuickAccessToolBarCommand, RemoveFromQATExecuted, RemoveFromQATCanExecute));
116
new
CommandBinding
(RibbonCommands.ShowQuickAccessToolBarAboveRibbonCommand, ShowQATAboveExecuted, ShowQATAboveCanExecute));
118
new
CommandBinding
(RibbonCommands.ShowQuickAccessToolBarBelowRibbonCommand, ShowQATBelowExecuted, ShowQATBelowCanExecute));
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
78
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(FilterCommand, FilterExecuted, FilterCanExecute));
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (5)
60
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(_minimizeWindowCommand, MinimizeWindowExecuted, MinimizeWindowCanExecute));
61
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(_maximizeWindowCommand, MaximizeWindowExecuted, MaximizeWindowCanExecute));
62
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(_restoreWindowCommand, RestoreWindowExecuted, RestoreWindowCanExecute));
63
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(_closeWindowCommand, CloseWindowExecuted, CloseWindowCanExecute));
64
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(_showSystemMenuCommand, SystemMenuExecuted, SystemMenuCanExecute));