1 instantiation of CommandManager
PresentationCore (1)
System\Windows\Input\Command\CommandManager.cs (1)
251
_commandManager = new
CommandManager
();
146 references to CommandManager
PresentationCore (38)
System\Windows\Generated\UIElement.cs (12)
781
EventManager.RegisterClassHandler(type,
CommandManager
.PreviewExecutedEvent, new ExecutedRoutedEventHandler(UIElement.OnPreviewExecutedThunk), false);
782
EventManager.RegisterClassHandler(type,
CommandManager
.ExecutedEvent, new ExecutedRoutedEventHandler(UIElement.OnExecutedThunk), false);
783
EventManager.RegisterClassHandler(type,
CommandManager
.PreviewCanExecuteEvent, new CanExecuteRoutedEventHandler(UIElement.OnPreviewCanExecuteThunk), false);
784
EventManager.RegisterClassHandler(type,
CommandManager
.CanExecuteEvent, new CanExecuteRoutedEventHandler(UIElement.OnCanExecuteThunk), false);
845
CommandManager
.TranslateInput((IInputElement)sender, e);
1212
CommandManager
.TranslateInput((IInputElement)sender, e);
1942
CommandManager
.TranslateInput((IInputElement)sender, e);
2173
CommandManager
.OnExecuted(sender, e);
2181
CommandManager
.OnExecuted(sender, e);
2189
CommandManager
.OnCanExecute(sender, e);
2197
CommandManager
.OnCanExecute(sender, e);
2205
CommandManager
.OnCommandDevice(sender, e);
System\Windows\Input\Command\CanExecuteChangedEventManager.cs (1)
454
if (sender is
CommandManager
)
System\Windows\Input\Command\CommandBinding.cs (3)
123
if (e.RoutedEvent ==
CommandManager
.CanExecuteEvent)
157
RoutedEvent =
CommandManager
.CanExecuteEvent,
177
if (e.RoutedEvent ==
CommandManager
.ExecutedEvent)
System\Windows\Input\Command\CommandDevice.cs (1)
113
CommandManager
.InvalidateRequerySuggested();
System\Windows\Input\Command\CommandManager.cs (15)
40
typeof(
CommandManager
));
75
typeof(
CommandManager
));
110
typeof(
CommandManager
));
145
typeof(
CommandManager
));
235
CommandManager
.Current.RaiseRequerySuggested();
245
private static
CommandManager
Current
511
RoutedEvent =
CommandManager
.CanExecuteEvent,
520
RoutedEvent =
CommandManager
.ExecutedEvent,
753
private static
CommandManager
_commandManager;
839
public static void AddHandler(
CommandManager
source, EventHandler handler)
850
public static void RemoveHandler(
CommandManager
source, EventHandler handler)
879
CommandManager
typedSource =
CommandManager
.Current;
888
CommandManager
typedSource =
CommandManager
.Current;
System\Windows\Input\Command\RoutedCommand.cs (6)
105
add {
CommandManager
.RequerySuggested += value; }
106
remove {
CommandManager
.RequerySuggested -= value; }
324
RoutedEvent =
CommandManager
.PreviewCanExecuteEvent
329
args.RoutedEvent =
CommandManager
.CanExecuteEvent;
385
RoutedEvent =
CommandManager
.PreviewExecutedEvent
411
args.RoutedEvent =
CommandManager
.ExecutedEvent;
PresentationFramework (87)
MS\Internal\AppModel\JournalNavigationScope.cs (1)
473
System.Windows.Input.
CommandManager
.InvalidateRequerySuggested();
MS\Internal\Commands\CommandHelpers.cs (2)
102
CommandManager
.RegisterClassCommandBinding(controlType, new CommandBinding(command, executedRoutedEventHandler, canExecuteRoutedEventHandler));
107
CommandManager
.RegisterClassInputBinding(controlType, new InputBinding(command, inputGestures[i]));
System\Windows\Annotations\AnnotationService.cs (18)
46
CommandManager
.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(CreateHighlightCommand, AnnotationHelper.OnCreateHighlightCommand, AnnotationHelper.OnQueryCreateHighlightCommand));
48
CommandManager
.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(CreateTextStickyNoteCommand, AnnotationHelper.OnCreateTextStickyNoteCommand, AnnotationHelper.OnQueryCreateTextStickyNoteCommand));
50
CommandManager
.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(CreateInkStickyNoteCommand, AnnotationHelper.OnCreateInkStickyNoteCommand, AnnotationHelper.OnQueryCreateInkStickyNoteCommand));
52
CommandManager
.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(ClearHighlightsCommand, AnnotationHelper.OnClearHighlightsCommand, AnnotationHelper.OnQueryClearHighlightsCommand));
54
CommandManager
.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(DeleteStickyNotesCommand, AnnotationHelper.OnDeleteStickyNotesCommand, AnnotationHelper.OnQueryDeleteStickyNotesCommand));
56
CommandManager
.RegisterClassCommandBinding(typeof(DocumentViewerBase), new CommandBinding(DeleteAnnotationsCommand, AnnotationHelper.OnDeleteAnnotationsCommand, AnnotationHelper.OnQueryDeleteAnnotationsCommand));
58
CommandManager
.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(CreateHighlightCommand, AnnotationHelper.OnCreateHighlightCommand, AnnotationHelper.OnQueryCreateHighlightCommand));
60
CommandManager
.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(CreateTextStickyNoteCommand, AnnotationHelper.OnCreateTextStickyNoteCommand, AnnotationHelper.OnQueryCreateTextStickyNoteCommand));
62
CommandManager
.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(CreateInkStickyNoteCommand, AnnotationHelper.OnCreateInkStickyNoteCommand, AnnotationHelper.OnQueryCreateInkStickyNoteCommand));
64
CommandManager
.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(ClearHighlightsCommand, AnnotationHelper.OnClearHighlightsCommand, AnnotationHelper.OnQueryClearHighlightsCommand));
66
CommandManager
.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(DeleteStickyNotesCommand, AnnotationHelper.OnDeleteStickyNotesCommand, AnnotationHelper.OnQueryDeleteStickyNotesCommand));
68
CommandManager
.RegisterClassCommandBinding(typeof(FlowDocumentScrollViewer), new CommandBinding(DeleteAnnotationsCommand, AnnotationHelper.OnDeleteAnnotationsCommand, AnnotationHelper.OnQueryDeleteAnnotationsCommand));
70
CommandManager
.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(CreateHighlightCommand, AnnotationHelper.OnCreateHighlightCommand, AnnotationHelper.OnQueryCreateHighlightCommand));
72
CommandManager
.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(CreateTextStickyNoteCommand, AnnotationHelper.OnCreateTextStickyNoteCommand, AnnotationHelper.OnQueryCreateTextStickyNoteCommand));
74
CommandManager
.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(CreateInkStickyNoteCommand, AnnotationHelper.OnCreateInkStickyNoteCommand, AnnotationHelper.OnQueryCreateInkStickyNoteCommand));
76
CommandManager
.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(ClearHighlightsCommand, AnnotationHelper.OnClearHighlightsCommand, AnnotationHelper.OnQueryClearHighlightsCommand));
78
CommandManager
.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(DeleteStickyNotesCommand, AnnotationHelper.OnDeleteStickyNotesCommand, AnnotationHelper.OnQueryDeleteStickyNotesCommand));
80
CommandManager
.RegisterClassCommandBinding(typeof(FlowDocumentReader), new CommandBinding(DeleteAnnotationsCommand, AnnotationHelper.OnDeleteAnnotationsCommand, AnnotationHelper.OnQueryDeleteAnnotationsCommand));
System\Windows\Controls\DataGrid.cs (22)
57
CommandManager
.RegisterClassInputBinding(ownerType, new InputBinding(BeginEditCommand, new KeyGesture(Key.F2)));
58
CommandManager
.RegisterClassCommandBinding(ownerType, new CommandBinding(BeginEditCommand, new ExecutedRoutedEventHandler(OnExecutedBeginEdit), new CanExecuteRoutedEventHandler(OnCanExecuteBeginEdit)));
60
CommandManager
.RegisterClassCommandBinding(ownerType, new CommandBinding(CommitEditCommand, new ExecutedRoutedEventHandler(OnExecutedCommitEdit), new CanExecuteRoutedEventHandler(OnCanExecuteCommitEdit)));
62
CommandManager
.RegisterClassInputBinding(ownerType, new InputBinding(CancelEditCommand, new KeyGesture(Key.Escape)));
63
CommandManager
.RegisterClassCommandBinding(ownerType, new CommandBinding(CancelEditCommand, new ExecutedRoutedEventHandler(OnExecutedCancelEdit), new CanExecuteRoutedEventHandler(OnCanExecuteCancelEdit)));
65
CommandManager
.RegisterClassCommandBinding(ownerType, new CommandBinding(SelectAllCommand, new ExecutedRoutedEventHandler(OnExecutedSelectAll), new CanExecuteRoutedEventHandler(OnCanExecuteSelectAll)));
67
CommandManager
.RegisterClassCommandBinding(ownerType, new CommandBinding(DeleteCommand, new ExecutedRoutedEventHandler(OnExecutedDelete), new CanExecuteRoutedEventHandler(OnCanExecuteDelete)));
70
CommandManager
.RegisterClassCommandBinding(typeof(DataGrid), new CommandBinding(ApplicationCommands.Copy, new ExecutedRoutedEventHandler(OnExecutedCopy), new CanExecuteRoutedEventHandler(OnCanExecuteCopy)));
2281
CommandManager
.InvalidateRequerySuggested();
2411
CommandManager
.InvalidateRequerySuggested();
2576
CommandManager
.InvalidateRequerySuggested();
2789
CommandManager
.InvalidateRequerySuggested();
3046
CommandManager
.InvalidateRequerySuggested();
3394
CommandManager
.InvalidateRequerySuggested();
3413
CommandManager
.InvalidateRequerySuggested();
3516
CommandManager
.InvalidateRequerySuggested();
3596
CommandManager
.InvalidateRequerySuggested();
3606
CommandManager
.InvalidateRequerySuggested();
4290
CommandManager
.InvalidateRequerySuggested();
4560
CommandManager
.InvalidateRequerySuggested();
5416
CommandManager
.InvalidateRequerySuggested();
8240
CommandManager
.InvalidateRequerySuggested();
System\Windows\Controls\DataGridCell.cs (1)
229
CommandManager
.InvalidateRequerySuggested();
System\Windows\Controls\DocumentViewer.cs (3)
1699
CommandManager
.RegisterClassInputBinding(typeof(DocumentViewer),
1711
CommandManager
.RegisterClassInputBinding(typeof(DocumentViewer),
1723
CommandManager
.RegisterClassInputBinding(typeof(DocumentViewer),
System\Windows\Controls\FlowDocumentReader.cs (8)
671
CommandManager
.InvalidateRequerySuggested();
1168
CommandManager
.AddPreviewCanExecuteHandler(_pageViewer, new CanExecuteRoutedEventHandler(PreviewCanExecuteRoutedEventHandler));
1178
CommandManager
.AddPreviewCanExecuteHandler(_twoPageViewer, new CanExecuteRoutedEventHandler(PreviewCanExecuteRoutedEventHandler));
1188
CommandManager
.AddPreviewCanExecuteHandler(_scrollViewer, new CanExecuteRoutedEventHandler(PreviewCanExecuteRoutedEventHandler));
1246
CommandManager
.InvalidateRequerySuggested();
1714
CommandManager
.InvalidateRequerySuggested();
1726
CommandManager
.InvalidateRequerySuggested();
1739
CommandManager
.InvalidateRequerySuggested();
System\Windows\Controls\FlowDocumentScrollViewer.cs (5)
569
CommandManager
.InvalidateRequerySuggested();
578
CommandManager
.AddPreviewCanExecuteHandler(_contentHost, new CanExecuteRoutedEventHandler(PreviewCanExecuteRoutedEventHandler));
1072
CommandManager
.RemovePreviewCanExecuteHandler(_contentHost, new CanExecuteRoutedEventHandler(PreviewCanExecuteRoutedEventHandler));
1086
CommandManager
.InvalidateRequerySuggested();
1632
CommandManager
.InvalidateRequerySuggested();
System\Windows\Controls\MenuItem.cs (1)
607
CommandManager
.InvalidateRequerySuggested(); // Should post an idle queue item to update IsEnabled on commands
System\Windows\Controls\Primitives\DocumentViewerBase.cs (4)
578
CommandManager
.InvalidateRequerySuggested();
1254
CommandManager
.InvalidateRequerySuggested();
1428
CommandManager
.InvalidateRequerySuggested();
1603
CommandManager
.InvalidateRequerySuggested();
System\Windows\Controls\Primitives\Track.cs (2)
176
CommandManager
.InvalidateRequerySuggested(); // Should post an idle queue item to update IsEnabled on button
217
CommandManager
.InvalidateRequerySuggested(); // Should post an idle queue item to update IsEnabled on button
System\Windows\Controls\SinglePageViewer.cs (14)
677
CommandManager
.InvalidateRequerySuggested();
684
CommandManager
.AddPreviewCanExecuteHandler(this, new CanExecuteRoutedEventHandler(PreviewCanExecuteRoutedEventHandler));
1105
CommandManager
.RemovePreviewCanExecuteHandler(this, new CanExecuteRoutedEventHandler(PreviewCanExecuteRoutedEventHandler));
1117
CommandManager
.InvalidateRequerySuggested();
1272
CommandManager
.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.PreviousPage, new KeyGesture(Key.Left)));
1273
CommandManager
.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.PreviousPage, new KeyGesture(Key.Up)));
1274
CommandManager
.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.PreviousPage, new KeyGesture(Key.PageUp)));
1275
CommandManager
.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.NextPage, new KeyGesture(Key.Right)));
1276
CommandManager
.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.NextPage, new KeyGesture(Key.Down)));
1277
CommandManager
.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.NextPage, new KeyGesture(Key.PageDown)));
1278
CommandManager
.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.FirstPage, new KeyGesture(Key.Home)));
1279
CommandManager
.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.FirstPage, new KeyGesture(Key.Home, ModifierKeys.Control)));
1280
CommandManager
.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.LastPage, new KeyGesture(Key.End)));
1281
CommandManager
.RegisterClassInputBinding(typeof(FlowDocumentPageViewer), new InputBinding(NavigationCommands.LastPage, new KeyGesture(Key.End, ModifierKeys.Control)));
System\Windows\Navigation\NavigationWindow.cs (5)
158
CommandManager
.RegisterClassCommandBinding(
165
CommandManager
.RegisterClassCommandBinding(
172
CommandManager
.RegisterClassCommandBinding(
176
CommandManager
.RegisterClassCommandBinding(
183
CommandManager
.RegisterClassCommandBinding(
System\Windows\Window.cs (1)
3573
CommandManager
.RegisterClassCommandBinding(typeof(Window), binding);
PresentationUI (9)
InstallationError.xaml.cs (1)
20
CommandManager
.RegisterClassCommandBinding(typeof(InstallationErrorPage),
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (5)
324
CommandManager
.InvalidateRequerySuggested();
343
CommandManager
.InvalidateRequerySuggested();
381
CommandManager
.InvalidateRequerySuggested();
2129
CommandManager
.RegisterClassCommandBinding(typeof(DocumentApplicationDocumentViewer),
2137
CommandManager
.RegisterClassInputBinding(typeof(DocumentApplicationDocumentViewer),
TenFeetInstallationError.xaml.cs (1)
27
CommandManager
.RegisterClassCommandBinding(typeof(TenFeetInstallationError),
TenFeetInstallationProgress.xaml.cs (2)
28
CommandManager
.RegisterClassCommandBinding(typeof(TenFeetInstallationProgress),
33
CommandManager
.RegisterClassCommandBinding(typeof(TenFeetInstallationProgress),
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (6)
104
CommandManager
.RegisterClassCommandBinding(ownerType,
106
CommandManager
.RegisterClassCommandBinding(ownerType,
108
CommandManager
.RegisterClassCommandBinding(ownerType,
110
CommandManager
.RegisterClassCommandBinding(ownerType,
112
CommandManager
.RegisterClassCommandBinding(ownerType,
114
CommandManager
.RegisterClassCommandBinding(ownerType,
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
76
CommandManager
.RegisterClassCommandBinding(ownerType, new CommandBinding(FilterCommand, FilterExecuted, FilterCanExecute));
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (5)
55
CommandManager
.RegisterClassCommandBinding(ownerType, new CommandBinding(_minimizeWindowCommand, MinimizeWindowExecuted, MinimizeWindowCanExecute));
56
CommandManager
.RegisterClassCommandBinding(ownerType, new CommandBinding(_maximizeWindowCommand, MaximizeWindowExecuted, MaximizeWindowCanExecute));
57
CommandManager
.RegisterClassCommandBinding(ownerType, new CommandBinding(_restoreWindowCommand, RestoreWindowExecuted, RestoreWindowCanExecute));
58
CommandManager
.RegisterClassCommandBinding(ownerType, new CommandBinding(_closeWindowCommand, CloseWindowExecuted, CloseWindowCanExecute));
59
CommandManager
.RegisterClassCommandBinding(ownerType, new CommandBinding(_showSystemMenuCommand, SystemMenuExecuted, SystemMenuCanExecute));