124 writes to CanExecute
PresentationCore (2)
System\Windows\Input\Command\CommandBinding.cs (1)
138
e.
CanExecute
= true;
System\Windows\Input\Command\CommandManager.cs (1)
662
e.
CanExecute
= command.CanExecute(e.Parameter, newSource);
PresentationFramework (91)
System\Windows\Annotations\AnnotationHelper.cs (6)
396
e.
CanExecute
= IsCommandEnabled(sender, true);
408
e.
CanExecute
= IsCommandEnabled(sender, true);
420
e.
CanExecute
= IsCommandEnabled(sender, true);
432
e.
CanExecute
= IsCommandEnabled(sender, true);
444
e.
CanExecute
= IsCommandEnabled(sender, false);
456
e.
CanExecute
= IsCommandEnabled(sender, false);
System\Windows\Controls\DataGrid.cs (6)
2116
e.
CanExecute
= true;
2332
e.
CanExecute
= true;
2506
e.
CanExecute
= true;
2596
e.
CanExecute
= CanUserDeleteRows && // User is allowed to delete
4335
e.
CanExecute
= (dataGrid.SelectionMode == DataGridSelectionMode.Extended) && dataGrid.IsEnabled;
8258
args.
CanExecute
= ClipboardCopyMode != DataGridClipboardCopyMode.None && _selectedCells.Count > 0;
System\Windows\Controls\DocumentViewer.cs (11)
1764
args.
CanExecute
= true;
1769
args.
CanExecute
= dv.TextEditor != null;
1776
args.
CanExecute
= dv.CanMoveUp;
1783
args.
CanExecute
= dv.CanMoveDown;
1790
args.
CanExecute
= dv.CanMoveLeft;
1797
args.
CanExecute
= dv.CanMoveRight;
1803
args.
CanExecute
= dv.CanIncreaseZoom;
1809
args.
CanExecute
= dv.CanDecreaseZoom;
1816
args.
CanExecute
= dv.CanGoToPreviousPage;
1823
args.
CanExecute
= dv.CanGoToNextPage;
1828
args.
CanExecute
= (dv.Document != null);
System\Windows\Controls\FlowDocumentReader.cs (9)
1404
args.
CanExecute
= viewer.CanSwitchToViewingMode(mode);
1408
args.
CanExecute
= (args.Parameter == null);
1413
args.
CanExecute
= viewer.CanShowFindToolBar;
1417
args.
CanExecute
= (viewer.Document != null) && viewer.IsPrintEnabled;
1421
args.
CanExecute
= false;
1425
args.
CanExecute
= true;
1430
args.
CanExecute
= (args.Command == ApplicationCommands.CancelPrint);
1613
args.
CanExecute
= false;
1618
args.
CanExecute
= IsPrintEnabled;
System\Windows\Controls\FlowDocumentScrollViewer.cs (6)
1415
args.
CanExecute
= viewer.CanShowFindToolBar;
1419
args.
CanExecute
= (viewer.Document != null);
1423
args.
CanExecute
= false;
1427
args.
CanExecute
= true;
1432
args.
CanExecute
= (args.Command == ApplicationCommands.CancelPrint);
1575
args.
CanExecute
= false;
System\Windows\Controls\Frame.cs (3)
631
e.
CanExecute
= _ownJournalScope.CanGoBack;
644
e.
CanExecute
= _ownJournalScope.CanGoForward;
676
e.
CanExecute
= Content != null;
System\Windows\Controls\InkCanvas.cs (5)
2787
args.
CanExecute
= inkCanvas.InkCanvasSelection.HasSelection;
2793
args.
CanExecute
= args.UserInitiated
2801
args.
CanExecute
= false;
2807
args.
CanExecute
= ( inkCanvas.ActiveEditingMode == InkCanvasEditingMode.Select
2815
args.
CanExecute
= false;
System\Windows\Controls\ListBox.cs (1)
687
args.
CanExecute
= true;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
1512
args.
CanExecute
= (dv.Document != null) && (dv._documentWriter == null);
1517
args.
CanExecute
= (dv._documentWriter != null);
1521
args.
CanExecute
= true;
System\Windows\Controls\Primitives\ScrollBar.cs (2)
656
args.
CanExecute
= (args.Command == ScrollBar.ScrollHereCommand);
661
args.
CanExecute
= ((ScrollBar)target).IsStandalone;
System\Windows\Controls\ScrollViewer.cs (3)
2588
args.
CanExecute
= true;
2604
args.
CanExecute
= false;
2622
args.
CanExecute
= false;
System\Windows\Controls\SinglePageViewer.cs (3)
1301
args.
CanExecute
= fdpv.CanShowFindToolBar;
1305
args.
CanExecute
= true;
1355
args.
CanExecute
= false;
System\Windows\Controls\StickyNote.cs (2)
1755
args.
CanExecute
= snc._attachedAnnotation != null;
1762
args.
CanExecute
= (content != null && content.Type == StickyNoteType.Ink);
System\Windows\Controls\TextBox.cs (2)
985
args.
CanExecute
= !textBox.IsReadOnly
1917
args.
CanExecute
= true;
System\Windows\Documents\RubberbandSelector.cs (1)
500
e.
CanExecute
= true;
System\windows\Documents\TextEditor.cs (2)
1896
args.
CanExecute
= true;
1916
args.
CanExecute
= true;
System\windows\Documents\TextEditorCharacters.cs (1)
483
args.
CanExecute
= true;
System\windows\Documents\TextEditorCopyPaste.cs (8)
503
args.
CanExecute
= false;
508
args.
CanExecute
= !This.Selection.IsEmpty;
548
args.
CanExecute
= false;
553
args.
CanExecute
= !This.Selection.IsEmpty;
598
args.
CanExecute
= formatToApply.Length > 0;
605
args.
CanExecute
= false;
637
args.
CanExecute
= false;
659
args.
CanExecute
= false;
System\windows\Documents\TextEditorLists.cs (2)
102
args.
CanExecute
= true;
118
args.
CanExecute
= true;
System\windows\Documents\TextEditorParagraphs.cs (1)
192
e.
CanExecute
= true;
System\windows\Documents\TextEditorSelection.cs (2)
1977
args.
CanExecute
= true;
1998
args.
CanExecute
= true;
System\windows\Documents\TextEditorSpelling.cs (1)
248
args.
CanExecute
= (spellingError != null);
System\windows\Documents\TextEditorTables.cs (1)
134
args.
CanExecute
= true;
System\windows\Documents\TextEditorTyping.cs (6)
446
args.
CanExecute
= This.TextStore.QueryRangeOrReconvertSelection( /*fDoReconvert:*/ false);
451
args.
CanExecute
= false;
1047
args.
CanExecute
= true;
1317
args.
CanExecute
= true;
1333
args.
CanExecute
= true;
1857
args.
CanExecute
= true;
System\Windows\Navigation\NavigationWindow.cs (4)
1025
e.
CanExecute
= nw.CanGoBack;
1040
e.
CanExecute
= nw.CanGoForward;
1055
e.
CanExecute
= nw.Content != null;
1067
e.
CanExecute
= true;
PresentationUI (19)
InstallationError.xaml.cs (1)
202
e.
CanExecute
= true;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (15)
1365
e.
CanExecute
= false;
1371
e.
CanExecute
= documentManager.CanSave && documentManager.IsModified;
1380
e.
CanExecute
= true;
1388
e.
CanExecute
= true;
1396
e.
CanExecute
= true;
1446
e.
CanExecute
= dv.CanGoToPreviousPage;
1450
e.
CanExecute
= dv.CanGoToNextPage;
1508
e.
CanExecute
= true;
1512
e.
CanExecute
= !dv._docSigManager.IsSigned;
1516
e.
CanExecute
= dv._docSigManager.IsSigned || dv._docSigManager.HasRequests;
1520
e.
CanExecute
= false;
1602
e.
CanExecute
= true;
1609
e.
CanExecute
= isProtected;
1614
e.
CanExecute
= !isProtected;
1618
e.
CanExecute
= false;
TenFeetInstallationError.xaml.cs (1)
205
e.
CanExecute
= true;
TenFeetInstallationProgress.xaml.cs (2)
147
e.
CanExecute
= true;
162
e.
CanExecute
= true;
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (6)
2461
args.
CanExecute
= true;
2508
args.
CanExecute
= true;
2537
args.
CanExecute
= true;
2562
args.
CanExecute
= RibbonControlService.GetIsInQuickAccessToolBar(obj);
2596
args.
CanExecute
= true;
2626
args.
CanExecute
= true;
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
1791
args.
CanExecute
= true;
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (5)
176
args.
CanExecute
= true;
200
args.
CanExecute
= true;
224
args.
CanExecute
= true;
244
args.
CanExecute
= true;
263
args.
CanExecute
= true;
11 references to CanExecute
PresentationCore (7)
System\Windows\Input\Command\CommandBinding.cs (4)
135
if (e.
CanExecute
) return;
144
if (e.
CanExecute
)
154
if (e.
CanExecute
)
174
return canExecuteArgs.
CanExecute
;
System\Windows\Input\Command\CommandManager.cs (2)
478
return e.
CanExecute
|| e.Handled;
525
if (canExecuteArgs.
CanExecute
)
System\Windows\Input\Command\RoutedCommand.cs (1)
343
return args.
CanExecute
;
PresentationUI (4)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
1376
e.
CanExecute
);
1384
e.
CanExecute
);
1392
e.
CanExecute
);
1400
e.
CanExecute
);