63 instantiations of CommandBinding
Microsoft.VisualStudio.LanguageServices (8)
GenerateType\GenerateTypeDialog.xaml.cs (5)
48
CommandBindings.Add(new
CommandBinding
(
55
CommandBindings.Add(new
CommandBinding
(
62
CommandBindings.Add(new
CommandBinding
(
69
CommandBindings.Add(new
CommandBinding
(
76
CommandBindings.Add(new
CommandBinding
(
PickMembers\PickMembersDialog.xaml.cs (2)
47
CommandBindings.Add(new
CommandBinding
(
54
CommandBindings.Add(new
CommandBinding
(
StackTraceExplorer\StackTraceExplorerToolWindow.cs (1)
47
dockPanel.CommandBindings.Add(new
CommandBinding
(ApplicationCommands.Paste, (s, e) =>
PresentationFramework (38)
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 (5)
1362
AddCommandBinding(new
CommandBinding
(NavigationCommands.BrowseBack, OnGoBack, OnQueryGoBack));
1363
AddCommandBinding(new
CommandBinding
(NavigationCommands.BrowseForward, OnGoForward, OnQueryGoForward));
1364
AddCommandBinding(new
CommandBinding
(NavigationCommands.NavigateJournal, OnNavigateJournal));
1365
AddCommandBinding(new
CommandBinding
(NavigationCommands.Refresh, OnRefresh, OnQueryRefresh));
1366
AddCommandBinding(new
CommandBinding
(NavigationCommands.BrowseStop, OnBrowseStop));
System\Windows\Documents\RubberbandSelector.cs (1)
79
CommandBinding binding = new
CommandBinding
(ApplicationCommands.Copy);
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11540
bamlType.DefaultConstructor = delegate() { return new System.Windows.Input.
CommandBinding
(); };
System\Windows\Navigation\NavigationWindow.cs (5)
176
new
CommandBinding
(
183
new
CommandBinding
(
190
new
CommandBinding
(NavigationCommands.NavigateJournal, new ExecutedRoutedEventHandler(OnNavigateJournal)));
194
new
CommandBinding
(
201
new
CommandBinding
(
System\Windows\Window.cs (1)
3589
CommandBinding binding = new
CommandBinding
(DialogCancelCommand);
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));
58 references to CommandBinding
Microsoft.VisualStudio.LanguageServices (13)
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\ChangeSignature\ChangeSignatureDialog.g.cs (8)
263
((System.Windows.Input.
CommandBinding
)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.MoveUp_Click_FocusRow);
271
((System.Windows.Input.
CommandBinding
)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.MoveUp_Click);
279
((System.Windows.Input.
CommandBinding
)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.MoveDown_Click_FocusRow);
287
((System.Windows.Input.
CommandBinding
)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.MoveDown_Click);
295
((System.Windows.Input.
CommandBinding
)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.ToggleRemovedState);
318
((System.Windows.Input.
CommandBinding
)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.MoveSelectionUp_Click);
326
((System.Windows.Input.
CommandBinding
)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.MoveSelectionDown_Click);
334
((System.Windows.Input.
CommandBinding
)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OK_Click);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\PickMembers\PickMembersDialog.g.cs (2)
160
((System.Windows.Input.
CommandBinding
)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.MoveUp_Click);
168
((System.Windows.Input.
CommandBinding
)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.MoveDown_Click);
artifacts\obj\Microsoft.VisualStudio.LanguageServices\Release\net472\StackTraceExplorer\StackTraceExplorer.g.cs (3)
77
((System.Windows.Input.
CommandBinding
)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CommandBinding_Executed);
85
((System.Windows.Input.
CommandBinding
)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CommandBinding_Executed);
109
((System.Windows.Input.
CommandBinding
)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.CommandBinding_Executed);
PresentationCore (32)
System\Windows\Input\Command\CommandBindingCollection.cs (22)
91
return Contains(key as
CommandBinding
) ;
101
return ((value is
CommandBinding
commandBinding) ? IndexOf(commandBinding) : -1);
111
Insert(index, value as
CommandBinding
);
120
return Add(commandBinding as
CommandBinding
);
129
Remove(commandBinding as
CommandBinding
);
143
if (value is not
CommandBinding
commandBinding)
153
public
CommandBinding
this[int index]
172
public int Add(
CommandBinding
commandBinding)
176
_innerCBList ??= new Collections.Generic.List<
CommandBinding
>(1);
198
_innerCBList ??= new System.Collections.Generic.List<
CommandBinding
>(collection.Count);
203
if (collectionEnum.Current is
CommandBinding
cmdBinding)
219
public void Insert(int index,
CommandBinding
commandBinding)
235
public void Remove(
CommandBinding
commandBinding)
314
public int IndexOf(
CommandBinding
value)
324
public bool Contains(
CommandBinding
commandBinding)
338
public void CopyTo(
CommandBinding
[] commandBindings, int index)
353
System.Collections.Generic.List<
CommandBinding
> list = new System.Collections.Generic.List<
CommandBinding
>(0);
366
CommandBinding
commandBinding = this[i];
378
internal
CommandBinding
FindMatch(ICommand command, ref int index)
382
CommandBinding
commandBinding = this[index++];
399
private Collections.Generic.List<
CommandBinding
> _innerCBList;
System\Windows\Input\Command\CommandManager.cs (10)
222
public static void RegisterClassCommandBinding(Type type,
CommandBinding
commandBinding)
475
private static bool CanExecuteCommandBinding(object sender, CanExecuteRoutedEventArgs e,
CommandBinding
commandBinding)
510
private static bool ExecuteCommandBinding(object sender, ExecutedRoutedEventArgs e,
CommandBinding
commandBinding)
561
ValueTuple<Type,
CommandBinding
>? tuple = default; // zero or one binding
562
List<ValueTuple<Type,
CommandBinding
>> list = default; // more than one
575
CommandBinding
commandBinding = classCommandBindings.FindMatch(command, ref index);
587
list ??= new List<ValueTuple<Type,
CommandBinding
>>(8)
592
list.Add(new ValueTuple<Type,
CommandBinding
>(classType, commandBinding));
640
CommandBinding
commandBinding = commandBindings.FindMatch(command, ref index);
648
private static bool HandleCommandBinding(object sender, RoutedEventArgs e,
CommandBinding
commandBinding, bool execute)
PresentationFramework (13)
System\Windows\Controls\Frame.cs (4)
1382
foreach (
CommandBinding
cb in _commandBindings)
1391
private void AddCommandBinding(
CommandBinding
b)
1399
_commandBindings = new List<
CommandBinding
>(6);
1421
private List<
CommandBinding
> _commandBindings;
System\Windows\Documents\RubberbandSelector.cs (2)
79
CommandBinding
binding = new CommandBinding(ApplicationCommands.Copy);
106
foreach (
CommandBinding
binding in commandBindings)
System\Windows\FrameworkCompatibilityPreferences.cs (1)
364
/// <see cref="System.Windows.Input.
CommandBinding
"/>, and apply that binding to all TextBoxBase
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (4)
6986
Type type = typeof(System.Windows.Input.
CommandBinding
);
6988
this.GetXamlType(typeof(System.Windows.Input.
CommandBinding
)), // DeclaringType
6995
bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Input.
CommandBinding
)target).Command = (System.Windows.Input.ICommand)value; };
6996
bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Input.
CommandBinding
)target).Command; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11538
typeof(System.Windows.Input.
CommandBinding
),
System\Windows\Window.cs (1)
3589
CommandBinding
binding = new CommandBinding(DialogCancelCommand);