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