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