36 references to CommandBinding
PresentationCore (2)
Core\CSharp\System\Windows\Input\Command\CommandBinding.cs (2)
41
:
this
(command, null, null)
51
:
this
(command, executed, null)
PresentationFramework (32)
src\Framework\MS\Internal\Commands\CommandHelpers.cs (1)
110
CommandManager.RegisterClassCommandBinding(controlType, new
CommandBinding
(command, executedRoutedEventHandler, canExecuteRoutedEventHandler));
src\Framework\System\Windows\Annotations\AnnotationService.cs (18)
70
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new
CommandBinding
(CreateHighlightCommand, AnnotationHelper.OnCreateHighlightCommand, AnnotationHelper.OnQueryCreateHighlightCommand));
72
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new
CommandBinding
(CreateTextStickyNoteCommand, AnnotationHelper.OnCreateTextStickyNoteCommand, AnnotationHelper.OnQueryCreateTextStickyNoteCommand));
74
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new
CommandBinding
(CreateInkStickyNoteCommand, AnnotationHelper.OnCreateInkStickyNoteCommand, AnnotationHelper.OnQueryCreateInkStickyNoteCommand));
76
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new
CommandBinding
(ClearHighlightsCommand, AnnotationHelper.OnClearHighlightsCommand, AnnotationHelper.OnQueryClearHighlightsCommand));
78
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new
CommandBinding
(DeleteStickyNotesCommand, AnnotationHelper.OnDeleteStickyNotesCommand, AnnotationHelper.OnQueryDeleteStickyNotesCommand));
80
CommandManager.RegisterClassCommandBinding(typeof(DocumentViewerBase), new
CommandBinding
(DeleteAnnotationsCommand, AnnotationHelper.OnDeleteAnnotationsCommand, AnnotationHelper.OnQueryDeleteAnnotationsCommand));
82
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new
CommandBinding
(CreateHighlightCommand, AnnotationHelper.OnCreateHighlightCommand, AnnotationHelper.OnQueryCreateHighlightCommand));
84
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new
CommandBinding
(CreateTextStickyNoteCommand, AnnotationHelper.OnCreateTextStickyNoteCommand, AnnotationHelper.OnQueryCreateTextStickyNoteCommand));
86
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new
CommandBinding
(CreateInkStickyNoteCommand, AnnotationHelper.OnCreateInkStickyNoteCommand, AnnotationHelper.OnQueryCreateInkStickyNoteCommand));
88
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new
CommandBinding
(ClearHighlightsCommand, AnnotationHelper.OnClearHighlightsCommand, AnnotationHelper.OnQueryClearHighlightsCommand));
90
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new
CommandBinding
(DeleteStickyNotesCommand, AnnotationHelper.OnDeleteStickyNotesCommand, AnnotationHelper.OnQueryDeleteStickyNotesCommand));
92
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new
CommandBinding
(DeleteAnnotationsCommand, AnnotationHelper.OnDeleteAnnotationsCommand, AnnotationHelper.OnQueryDeleteAnnotationsCommand));
94
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new
CommandBinding
(CreateHighlightCommand, AnnotationHelper.OnCreateHighlightCommand, AnnotationHelper.OnQueryCreateHighlightCommand));
96
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new
CommandBinding
(CreateTextStickyNoteCommand, AnnotationHelper.OnCreateTextStickyNoteCommand, AnnotationHelper.OnQueryCreateTextStickyNoteCommand));
98
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new
CommandBinding
(CreateInkStickyNoteCommand, AnnotationHelper.OnCreateInkStickyNoteCommand, AnnotationHelper.OnQueryCreateInkStickyNoteCommand));
100
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new
CommandBinding
(ClearHighlightsCommand, AnnotationHelper.OnClearHighlightsCommand, AnnotationHelper.OnQueryClearHighlightsCommand));
102
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new
CommandBinding
(DeleteStickyNotesCommand, AnnotationHelper.OnDeleteStickyNotesCommand, AnnotationHelper.OnQueryDeleteStickyNotesCommand));
104
CommandManager.RegisterClassCommandBinding(typeof(FlowDocumentReader), new
CommandBinding
(DeleteAnnotationsCommand, AnnotationHelper.OnDeleteAnnotationsCommand, AnnotationHelper.OnQueryDeleteAnnotationsCommand));
src\Framework\System\Windows\Controls\DataGrid.cs (6)
62
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(BeginEditCommand, new ExecutedRoutedEventHandler(OnExecutedBeginEdit), new CanExecuteRoutedEventHandler(OnCanExecuteBeginEdit)));
64
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(CommitEditCommand, new ExecutedRoutedEventHandler(OnExecutedCommitEdit), new CanExecuteRoutedEventHandler(OnCanExecuteCommitEdit)));
67
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(CancelEditCommand, new ExecutedRoutedEventHandler(OnExecutedCancelEdit), new CanExecuteRoutedEventHandler(OnCanExecuteCancelEdit)));
69
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(SelectAllCommand, new ExecutedRoutedEventHandler(OnExecutedSelectAll), new CanExecuteRoutedEventHandler(OnCanExecuteSelectAll)));
71
CommandManager.RegisterClassCommandBinding(ownerType, new
CommandBinding
(DeleteCommand, new ExecutedRoutedEventHandler(OnExecutedDelete), new CanExecuteRoutedEventHandler(OnCanExecuteDelete)));
74
CommandManager.RegisterClassCommandBinding(typeof(DataGrid), new
CommandBinding
(ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnExecutedCopy), new CanExecuteRoutedEventHandler(OnCanExecuteCopy)));
src\Framework\System\Windows\Controls\Frame.cs (3)
1382
AddCommandBinding(new
CommandBinding
(NavigationCommands.BrowseBack, OnGoBack, OnQueryGoBack));
1383
AddCommandBinding(new
CommandBinding
(NavigationCommands.BrowseForward, OnGoForward, OnQueryGoForward));
1385
AddCommandBinding(new
CommandBinding
(NavigationCommands.Refresh, OnRefresh, OnQueryRefresh));
src\Framework\System\Windows\Navigation\NavigationWindow.cs (4)
189
new
CommandBinding
(
196
new
CommandBinding
(
207
new
CommandBinding
(
214
new
CommandBinding
(
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyValueDialogHost.cs (1)
50
dialogRoot.CommandBindings.Add(new
CommandBinding
(PropertyContainer.OpenDialogWindow, dialogHost.OnOpenDialogWindow, dialogHost.OnCanOpenDialogWindow));
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
317
var cb = new
CommandBinding
(PropertyValueEditorCommands.ShowDialogEditor, this.OnShowPropertyValueEditor, this.OnCanShowPropertyValueEditor);