172 writes to CanExecute
PresentationCore (2)
Core\CSharp\System\Windows\Input\Command\CommandBinding.cs (1)
158e.CanExecute = true;
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (1)
761e.CanExecute = command.CanExecute(e.Parameter, newSource);
PresentationFramework (92)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
1013e.CanExecute = rbw.Content != null;
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (6)
403e.CanExecute = IsCommandEnabled(sender, true); 415e.CanExecute = IsCommandEnabled(sender, true); 427e.CanExecute = IsCommandEnabled(sender, true); 439e.CanExecute = IsCommandEnabled(sender, true); 451e.CanExecute = IsCommandEnabled(sender, false); 463e.CanExecute = IsCommandEnabled(sender, false);
src\Framework\System\Windows\Controls\DataGrid.cs (6)
2120e.CanExecute = true; 2337e.CanExecute = true; 2511e.CanExecute = true; 2601e.CanExecute = CanUserDeleteRows && // User is allowed to delete 4340e.CanExecute = (dataGrid.SelectionMode == DataGridSelectionMode.Extended) && dataGrid.IsEnabled; 8264args.CanExecute = ClipboardCopyMode != DataGridClipboardCopyMode.None && _selectedCells.Count > 0;
src\Framework\System\Windows\Controls\DocumentViewer.cs (11)
1797args.CanExecute = true; 1802args.CanExecute = dv.TextEditor != null; 1809args.CanExecute = dv.CanMoveUp; 1816args.CanExecute = dv.CanMoveDown; 1823args.CanExecute = dv.CanMoveLeft; 1830args.CanExecute = dv.CanMoveRight; 1836args.CanExecute = dv.CanIncreaseZoom; 1842args.CanExecute = dv.CanDecreaseZoom; 1849args.CanExecute = dv.CanGoToPreviousPage; 1856args.CanExecute = dv.CanGoToNextPage; 1861args.CanExecute = (dv.Document != null);
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (9)
1410args.CanExecute = viewer.CanSwitchToViewingMode(mode); 1414args.CanExecute = (args.Parameter == null); 1419args.CanExecute = viewer.CanShowFindToolBar; 1423args.CanExecute = (viewer.Document != null) && viewer.IsPrintEnabled; 1427args.CanExecute = false; 1431args.CanExecute = true; 1436args.CanExecute = (args.Command == ApplicationCommands.CancelPrint); 1619args.CanExecute = false; 1624args.CanExecute = IsPrintEnabled;
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (6)
1423args.CanExecute = viewer.CanShowFindToolBar; 1427args.CanExecute = (viewer.Document != null); 1431args.CanExecute = false; 1435args.CanExecute = true; 1440args.CanExecute = (args.Command == ApplicationCommands.CancelPrint); 1583args.CanExecute = false;
src\Framework\System\Windows\Controls\Frame.cs (3)
652e.CanExecute = _ownJournalScope.CanGoBack; 665e.CanExecute = _ownJournalScope.CanGoForward; 697e.CanExecute = Content != null;
src\Framework\System\Windows\Controls\InkCanvas.cs (5)
2933args.CanExecute = inkCanvas.InkCanvasSelection.HasSelection; 2939args.CanExecute = args.UserInitiated 2947args.CanExecute = false; 2953args.CanExecute = ( inkCanvas.ActiveEditingMode == InkCanvasEditingMode.Select 2961args.CanExecute = false;
src\Framework\System\Windows\Controls\ListBox.cs (1)
642args.CanExecute = true;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
1524args.CanExecute = (dv.Document != null) && (dv._documentWriter == null); 1529args.CanExecute = (dv._documentWriter != null); 1533args.CanExecute = true;
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (2)
661args.CanExecute = (args.Command == ScrollBar.ScrollHereCommand); 666args.CanExecute = ((ScrollBar)target).IsStandalone;
src\Framework\System\Windows\Controls\ScrollViewer.cs (3)
2628args.CanExecute = true; 2644args.CanExecute = false; 2662args.CanExecute = false;
src\Framework\System\Windows\Controls\SinglePageViewer.cs (3)
1308args.CanExecute = fdpv.CanShowFindToolBar; 1312args.CanExecute = true; 1362args.CanExecute = false;
src\Framework\System\Windows\Controls\StickyNote.cs (2)
1792args.CanExecute = snc._attachedAnnotation != null; 1799args.CanExecute = (content != null && content.Type == StickyNoteType.Ink);
src\Framework\System\Windows\Controls\TextBox.cs (1)
1910args.CanExecute = true;
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
598e.CanExecute = true;
src\Framework\System\windows\Documents\TextEditor.cs (2)
1941args.CanExecute = true; 1961args.CanExecute = true;
src\Framework\System\windows\Documents\TextEditorCharacters.cs (1)
485args.CanExecute = true;
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (9)
618args.CanExecute = false; 623args.CanExecute = !This.Selection.IsEmpty; 670args.CanExecute = false; 675args.CanExecute = !This.Selection.IsEmpty; 729args.CanExecute = formatToApply.Length > 0; 734args.CanExecute = Clipboard.IsClipboardPopulated(); 742args.CanExecute = false; 774args.CanExecute = false; 796args.CanExecute = false;
src\Framework\System\windows\Documents\TextEditorLists.cs (2)
104args.CanExecute= true; 120args.CanExecute = true;
src\Framework\System\windows\Documents\TextEditorParagraphs.cs (1)
193e.CanExecute = true;
src\Framework\System\windows\Documents\TextEditorSelection.cs (2)
1986args.CanExecute = true; 2007args.CanExecute = true;
src\Framework\System\windows\Documents\TextEditorSpelling.cs (1)
250args.CanExecute = (spellingError != null);
src\Framework\System\windows\Documents\TextEditorTables.cs (1)
136args.CanExecute = true;
src\Framework\System\windows\Documents\TextEditorTyping.cs (6)
452args.CanExecute = This.TextStore.QueryRangeOrReconvertSelection( /*fDoReconvert:*/ false); 457args.CanExecute = false; 1064args.CanExecute = true; 1334args.CanExecute = true; 1350args.CanExecute = true; 1887args.CanExecute = true;
src\Framework\System\Windows\Navigation\NavigationWindow.cs (4)
1052e.CanExecute = nw.CanGoBack; 1067e.CanExecute = nw.CanGoForward; 1082e.CanExecute = nw.Content != null; 1094e.CanExecute = true;
System.Activities.Core.Presentation (9)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (6)
175e.CanExecute = !this.IsReadOnly; 2068e.CanExecute = false; 2072e.CanExecute = true; 2077e.CanExecute = false; 2104e.CanExecute = true; 2116e.CanExecute = true;
System\Activities\Core\Presentation\StateDesigner.xaml.cs (1)
135e.CanExecute = (!this.IsReadOnly && stateMachineModelItem != null && this.ModelItem != stateMachineModelItem.Properties[StateMachineDesigner.InitialStatePropertyName].Value &&
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (2)
338e.CanExecute = false; 342e.CanExecute = !this.IsReadOnly && CutCopyPasteHelper.CanCopy(this.Context);
System.Activities.Presentation (69)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyValueDialogHost.cs (2)
61e.CanExecute = false; 69e.CanExecute = true;
System.Activities.Presentation\System\Activities\Presentation\ContextMenuUtilities.cs (9)
35e.CanExecute = false; 39e.CanExecute = !modelItem.HasAnnotation(); 58e.CanExecute = false; 62e.CanExecute = modelItem.HasAnnotation(); 71e.CanExecute = false; 75e.CanExecute = true; 86e.CanExecute = false; 91e.CanExecute = false; 94e.CanExecute = true;
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
179e.CanExecute = true;
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeDesigner.xaml.cs (3)
54e.CanExecute = false; 63e.CanExecute = false; 72e.CanExecute = false;
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
592args.CanExecute = null != this.LoadCustomPropertyValueEditorCallback(cell, row.Item);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (41)
616e.CanExecute = true; 631e.CanExecute = this.FocusedViewElement.ShowExpanded; 648e.CanExecute = !this.ShouldCollapseAll; 661e.CanExecute = this.ShouldExpandAll || this.ShouldCollapseAll; 675e.CanExecute = !this.ShouldExpandAll; 706e.CanExecute = !this.FocusedViewElement.ShowExpanded; 739e.CanExecute = true; 752e.CanExecute = !this.IsReadOnly && CutCopyPasteHelper.CanCopy(this.Context); 767e.CanExecute = !this.IsReadOnly && CutCopyPasteHelper.CanPaste(this.Context); 792e.CanExecute = !this.IsReadOnly && CutCopyPasteHelper.CanCut(this.Context); 806e.CanExecute = !this.IsReadOnly && DeleteHelper.CanDelete(this.Context); 830e.CanExecute = true; 875e.CanExecute = this.FocusedViewElement != null && this.FocusedViewElement.ModelItem != null && 902e.CanExecute = this.FocusedViewElement != null && this.FocusedViewElement.ModelItem != null && 932e.CanExecute = true; 962e.CanExecute = true; 980e.CanExecute = true; 992e.CanExecute = true; 1012e.CanExecute = true; 1041e.CanExecute = null != this.RootDesigner; 1083e.CanExecute = null != this.RootDesigner; 1158e.CanExecute = this.zoomToTicksConverter.CanZoomIn(); 1170e.CanExecute = true; 1187e.CanExecute = true; 1202e.CanExecute = this.zoomToTicksConverter.CanZoomOut(); 1214e.CanExecute = 1231e.CanExecute = ((this.shellBarItemVisibility & ShellBarItemVisibility.Variables) == ShellBarItemVisibility.Variables); 1246e.CanExecute = true; 1250e.CanExecute = false; 1295e.CanExecute = 1310e.CanExecute = 1325e.Handled = e.CanExecute = true; 1336e.CanExecute = e.Handled = true; 1443e.CanExecute = container.CanPasteItems(itemsToPaste); 1510e.CanExecute = (null != this.zoomToTicksConverter); 1522e.CanExecute = (null != this.zoomToTicksConverter); 1534e.CanExecute = false; 1591e.CanExecute = false; 1595e.CanExecute = true; 1615e.CanExecute = false; 1619e.CanExecute = true;
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
491e.CanExecute = expressionTextBox.editor.CanCommit();
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (11)
1437e.CanExecute = this.expressionEditorInstance.CanCompleteWord(); 1451e.CanExecute = this.expressionEditorInstance.CanGlobalIntellisense(); 1465e.CanExecute = this.expressionEditorInstance.CanParameterInfo(); 1478e.CanExecute = this.expressionEditorInstance.CanQuickInfo(); 1491e.CanExecute = this.expressionEditorInstance.CanIncreaseFilterLevel(); 1504e.CanExecute = this.expressionEditorInstance.CanDecreaseFilterLevel(); 1517e.CanExecute = this.expressionEditorInstance.CanCut(); 1620e.CanExecute = this.expressionEditorInstance.CanCopy(); 1645e.CanExecute = this.expressionEditorInstance.CanPaste(); 1670e.CanExecute = this.expressionEditorInstance.CanUndo(); 1706e.CanExecute = this.expressionEditorInstance.CanRedo();
7 references to CanExecute
PresentationCore (7)
Core\CSharp\System\Windows\Input\Command\CommandBinding.cs (4)
148if (e.CanExecute) 153else if (!e.CanExecute) 168if (e.CanExecute) 188return canExecuteArgs.CanExecute;
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (2)
546return e.CanExecute || e.Handled; 619if (canExecuteArgs.CanExecute)
Core\CSharp\System\Windows\Input\Command\RoutedCommand.cs (1)
389return args.CanExecute;