124 writes to CanExecute
PresentationCore (2)
System\Windows\Input\Command\CommandBinding.cs (1)
130
e.
CanExecute
= true;
System\Windows\Input\Command\CommandManager.cs (1)
651
e.
CanExecute
= command.CanExecute(e.Parameter, newSource);
PresentationFramework (91)
System\Windows\Annotations\AnnotationHelper.cs (6)
384
e.
CanExecute
= IsCommandEnabled(sender, true);
396
e.
CanExecute
= IsCommandEnabled(sender, true);
408
e.
CanExecute
= IsCommandEnabled(sender, true);
420
e.
CanExecute
= IsCommandEnabled(sender, true);
432
e.
CanExecute
= IsCommandEnabled(sender, false);
444
e.
CanExecute
= IsCommandEnabled(sender, false);
System\Windows\Controls\DataGrid.cs (6)
2113
e.
CanExecute
= true;
2329
e.
CanExecute
= true;
2503
e.
CanExecute
= true;
2593
e.
CanExecute
= CanUserDeleteRows && // User is allowed to delete
4332
e.
CanExecute
= (dataGrid.SelectionMode == DataGridSelectionMode.Extended) && dataGrid.IsEnabled;
8255
args.
CanExecute
= ClipboardCopyMode != DataGridClipboardCopyMode.None && _selectedCells.Count > 0;
System\Windows\Controls\DocumentViewer.cs (11)
1752
args.
CanExecute
= true;
1757
args.
CanExecute
= dv.TextEditor != null;
1764
args.
CanExecute
= dv.CanMoveUp;
1771
args.
CanExecute
= dv.CanMoveDown;
1778
args.
CanExecute
= dv.CanMoveLeft;
1785
args.
CanExecute
= dv.CanMoveRight;
1791
args.
CanExecute
= dv.CanIncreaseZoom;
1797
args.
CanExecute
= dv.CanDecreaseZoom;
1804
args.
CanExecute
= dv.CanGoToPreviousPage;
1811
args.
CanExecute
= dv.CanGoToNextPage;
1816
args.
CanExecute
= (dv.Document != null);
System\Windows\Controls\FlowDocumentReader.cs (9)
1399
args.
CanExecute
= viewer.CanSwitchToViewingMode(mode);
1403
args.
CanExecute
= (args.Parameter == null);
1408
args.
CanExecute
= viewer.CanShowFindToolBar;
1412
args.
CanExecute
= (viewer.Document != null) && viewer.IsPrintEnabled;
1416
args.
CanExecute
= false;
1420
args.
CanExecute
= true;
1425
args.
CanExecute
= (args.Command == ApplicationCommands.CancelPrint);
1608
args.
CanExecute
= false;
1613
args.
CanExecute
= IsPrintEnabled;
System\Windows\Controls\FlowDocumentScrollViewer.cs (6)
1412
args.
CanExecute
= viewer.CanShowFindToolBar;
1416
args.
CanExecute
= (viewer.Document != null);
1420
args.
CanExecute
= false;
1424
args.
CanExecute
= true;
1429
args.
CanExecute
= (args.Command == ApplicationCommands.CancelPrint);
1572
args.
CanExecute
= false;
System\Windows\Controls\Frame.cs (3)
619
e.
CanExecute
= _ownJournalScope.CanGoBack;
632
e.
CanExecute
= _ownJournalScope.CanGoForward;
664
e.
CanExecute
= Content != null;
System\Windows\Controls\InkCanvas.cs (5)
2775
args.
CanExecute
= inkCanvas.InkCanvasSelection.HasSelection;
2781
args.
CanExecute
= args.UserInitiated
2789
args.
CanExecute
= false;
2795
args.
CanExecute
= ( inkCanvas.ActiveEditingMode == InkCanvasEditingMode.Select
2803
args.
CanExecute
= false;
System\Windows\Controls\ListBox.cs (1)
681
args.
CanExecute
= true;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
1507
args.
CanExecute
= (dv.Document != null) && (dv._documentWriter == null);
1512
args.
CanExecute
= (dv._documentWriter != null);
1516
args.
CanExecute
= true;
System\Windows\Controls\Primitives\ScrollBar.cs (2)
640
args.
CanExecute
= (args.Command == ScrollBar.ScrollHereCommand);
645
args.
CanExecute
= ((ScrollBar)target).IsStandalone;
System\Windows\Controls\ScrollViewer.cs (3)
2580
args.
CanExecute
= true;
2596
args.
CanExecute
= false;
2614
args.
CanExecute
= false;
System\Windows\Controls\SinglePageViewer.cs (3)
1298
args.
CanExecute
= fdpv.CanShowFindToolBar;
1302
args.
CanExecute
= true;
1352
args.
CanExecute
= false;
System\Windows\Controls\StickyNote.cs (2)
1739
args.
CanExecute
= snc._attachedAnnotation != null;
1746
args.
CanExecute
= (content != null && content.Type == StickyNoteType.Ink);
System\Windows\Controls\TextBox.cs (2)
978
args.
CanExecute
= !textBox.IsReadOnly
1910
args.
CanExecute
= true;
System\Windows\Documents\RubberbandSelector.cs (1)
490
e.
CanExecute
= true;
System\windows\Documents\TextEditor.cs (2)
1890
args.
CanExecute
= true;
1910
args.
CanExecute
= true;
System\windows\Documents\TextEditorCharacters.cs (1)
467
args.
CanExecute
= true;
System\windows\Documents\TextEditorCopyPaste.cs (8)
490
args.
CanExecute
= false;
495
args.
CanExecute
= !This.Selection.IsEmpty;
535
args.
CanExecute
= false;
540
args.
CanExecute
= !This.Selection.IsEmpty;
585
args.
CanExecute
= formatToApply.Length > 0;
592
args.
CanExecute
= false;
624
args.
CanExecute
= false;
646
args.
CanExecute
= false;
System\windows\Documents\TextEditorLists.cs (2)
86
args.
CanExecute
= true;
102
args.
CanExecute
= true;
System\windows\Documents\TextEditorParagraphs.cs (1)
175
e.
CanExecute
= true;
System\windows\Documents\TextEditorSelection.cs (2)
1962
args.
CanExecute
= true;
1983
args.
CanExecute
= true;
System\windows\Documents\TextEditorSpelling.cs (1)
247
args.
CanExecute
= (spellingError != null);
System\windows\Documents\TextEditorTables.cs (1)
117
args.
CanExecute
= true;
System\windows\Documents\TextEditorTyping.cs (6)
437
args.
CanExecute
= This.TextStore.QueryRangeOrReconvertSelection( /*fDoReconvert:*/ false);
442
args.
CanExecute
= false;
1038
args.
CanExecute
= true;
1308
args.
CanExecute
= true;
1324
args.
CanExecute
= true;
1848
args.
CanExecute
= true;
System\Windows\Navigation\NavigationWindow.cs (4)
1009
e.
CanExecute
= nw.CanGoBack;
1024
e.
CanExecute
= nw.CanGoForward;
1039
e.
CanExecute
= nw.Content != null;
1051
e.
CanExecute
= true;
PresentationUI (19)
InstallationError.xaml.cs (1)
198
e.
CanExecute
= true;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (15)
1358
e.
CanExecute
= false;
1364
e.
CanExecute
= documentManager.CanSave && documentManager.IsModified;
1373
e.
CanExecute
= true;
1381
e.
CanExecute
= true;
1389
e.
CanExecute
= true;
1439
e.
CanExecute
= dv.CanGoToPreviousPage;
1443
e.
CanExecute
= dv.CanGoToNextPage;
1501
e.
CanExecute
= true;
1505
e.
CanExecute
= !dv._docSigManager.IsSigned;
1509
e.
CanExecute
= dv._docSigManager.IsSigned || dv._docSigManager.HasRequests;
1513
e.
CanExecute
= false;
1595
e.
CanExecute
= true;
1602
e.
CanExecute
= isProtected;
1607
e.
CanExecute
= !isProtected;
1611
e.
CanExecute
= false;
TenFeetInstallationError.xaml.cs (1)
201
e.
CanExecute
= true;
TenFeetInstallationProgress.xaml.cs (2)
143
e.
CanExecute
= true;
158
e.
CanExecute
= true;
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (6)
2458
args.
CanExecute
= true;
2505
args.
CanExecute
= true;
2534
args.
CanExecute
= true;
2559
args.
CanExecute
= RibbonControlService.GetIsInQuickAccessToolBar(obj);
2593
args.
CanExecute
= true;
2623
args.
CanExecute
= true;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
1789
args.
CanExecute
= true;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (5)
171
args.
CanExecute
= true;
195
args.
CanExecute
= true;
219
args.
CanExecute
= true;
239
args.
CanExecute
= true;
258
args.
CanExecute
= true;
11 references to CanExecute
PresentationCore (7)
System\Windows\Input\Command\CommandBinding.cs (4)
127
if (e.
CanExecute
) return;
136
if (e.
CanExecute
)
146
if (e.
CanExecute
)
166
return canExecuteArgs.
CanExecute
;
System\Windows\Input\Command\CommandManager.cs (2)
467
return e.
CanExecute
|| e.Handled;
514
if (canExecuteArgs.
CanExecute
)
System\Windows\Input\Command\RoutedCommand.cs (1)
332
return args.
CanExecute
;
PresentationUI (4)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
1369
e.
CanExecute
);
1377
e.
CanExecute
);
1385
e.
CanExecute
);
1393
e.
CanExecute
);