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