3 instantiations of CanExecuteRoutedEventArgs
PresentationCore (3)
Core\CSharp\System\Windows\Input\Command\CommandBinding.cs (1)
179
CanExecuteRoutedEventArgs canExecuteArgs = new
CanExecuteRoutedEventArgs
(e.Command, e.Parameter);
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (1)
614
CanExecuteRoutedEventArgs canExecuteArgs = new
CanExecuteRoutedEventArgs
(e.Command, null /* parameter */);
Core\CSharp\System\Windows\Input\Command\RoutedCommand.cs (1)
379
CanExecuteRoutedEventArgs args = new
CanExecuteRoutedEventArgs
(this, parameter);
177 references to CanExecuteRoutedEventArgs
PresentationCore (15)
Core\CSharp\System\Windows\Generated\UIElement.cs (2)
2485
private static void OnPreviewCanExecuteThunk(object sender,
CanExecuteRoutedEventArgs
e)
2497
private static void OnCanExecuteThunk(object sender,
CanExecuteRoutedEventArgs
e)
Core\CSharp\System\Windows\Input\Command\CanExecuteRoutedEventArgs.cs (1)
16
public delegate void CanExecuteRoutedEventHandler(object sender,
CanExecuteRoutedEventArgs
e);
Core\CSharp\System\Windows\Input\Command\CommandBinding.cs (2)
139
internal void OnCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
179
CanExecuteRoutedEventArgs
canExecuteArgs = new CanExecuteRoutedEventArgs(e.Command, e.Parameter);
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (8)
517
internal static void OnCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
543
private static bool CanExecuteCommandBinding(object sender,
CanExecuteRoutedEventArgs
e, CommandBinding commandBinding)
614
CanExecuteRoutedEventArgs
canExecuteArgs = new CanExecuteRoutedEventArgs(e.Command, null /* parameter */);
708
CanExecuteRoutedEventArgs
canExArgs = execute ? null : (
CanExecuteRoutedEventArgs
)e;
734
CanExecuteCommandBinding(sender, (
CanExecuteRoutedEventArgs
)e, tuple.Item2);
747
(!execute && CanExecuteCommandBinding(sender, (
CanExecuteRoutedEventArgs
)e, commandBinding)))
754
private static void TransferEvent(IInputElement newSource,
CanExecuteRoutedEventArgs
e)
Core\CSharp\System\Windows\Input\Command\RoutedCommand.cs (2)
379
CanExecuteRoutedEventArgs
args = new CanExecuteRoutedEventArgs(this, parameter);
402
private void CriticalCanExecuteWrapper(object parameter, IInputElement target, bool trusted,
CanExecuteRoutedEventArgs
args)
PresentationFramework (62)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
1005
private static void OnQueryEnabledCommandPrint(object sender,
CanExecuteRoutedEventArgs
e)
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (6)
401
internal static void OnQueryCreateHighlightCommand(object sender,
CanExecuteRoutedEventArgs
e)
413
internal static void OnQueryCreateTextStickyNoteCommand(object sender,
CanExecuteRoutedEventArgs
e)
425
internal static void OnQueryCreateInkStickyNoteCommand(object sender,
CanExecuteRoutedEventArgs
e)
437
internal static void OnQueryClearHighlightsCommand(object sender,
CanExecuteRoutedEventArgs
e)
449
internal static void OnQueryDeleteStickyNotesCommand(object sender,
CanExecuteRoutedEventArgs
e)
461
internal static void OnQueryDeleteAnnotationsCommand(object sender,
CanExecuteRoutedEventArgs
e)
src\Framework\System\Windows\Controls\DataGrid.cs (12)
2084
private static void OnCanExecuteBeginEdit(object sender,
CanExecuteRoutedEventArgs
e)
2097
protected virtual void OnCanExecuteBeginEdit(
CanExecuteRoutedEventArgs
e)
2290
private static void OnCanExecuteCommitEdit(object sender,
CanExecuteRoutedEventArgs
e)
2307
private bool CanEndEdit(
CanExecuteRoutedEventArgs
e, bool commit)
2333
protected virtual void OnCanExecuteCommitEdit(
CanExecuteRoutedEventArgs
e)
2494
private static void OnCanExecuteCancelEdit(object sender,
CanExecuteRoutedEventArgs
e)
2507
protected virtual void OnCanExecuteCancelEdit(
CanExecuteRoutedEventArgs
e)
2586
private static void OnCanExecuteDelete(object sender,
CanExecuteRoutedEventArgs
e)
2599
protected virtual void OnCanExecuteDelete(
CanExecuteRoutedEventArgs
e)
4337
private static void OnCanExecuteSelectAll(object sender,
CanExecuteRoutedEventArgs
e)
8253
private static void OnCanExecuteCopy(object target,
CanExecuteRoutedEventArgs
args)
8262
protected virtual void OnCanExecuteCopy(
CanExecuteRoutedEventArgs
args)
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
1771
private static void QueryEnabledHandler(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\Windows\Controls\FlowDocumentReader.cs (2)
1387
private static void CanExecuteRoutedEventHandler(object target,
CanExecuteRoutedEventArgs
args)
1614
private void PreviewCanExecuteRoutedEventHandler(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1407
private static void CanExecuteRoutedEventHandler(object target,
CanExecuteRoutedEventArgs
args)
1574
private void PreviewCanExecuteRoutedEventHandler(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\Windows\Controls\Frame.cs (3)
649
private void OnQueryGoBack(object sender,
CanExecuteRoutedEventArgs
e)
662
private void OnQueryGoForward(object sender,
CanExecuteRoutedEventArgs
e)
694
private void OnQueryRefresh(object sender,
CanExecuteRoutedEventArgs
e)
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2916
private static void _OnQueryCommandEnabled(object sender,
CanExecuteRoutedEventArgs
args)
src\Framework\System\Windows\Controls\ListBox.cs (1)
637
private static void OnQueryStatusSelectAll(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1512
private static void CanExecuteRoutedEventHandler(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (2)
659
private static void OnQueryScrollHereCommand(object target,
CanExecuteRoutedEventArgs
args)
664
private static void OnQueryScrollCommand(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
2626
private static void OnQueryScrollCommand(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\Windows\Controls\SinglePageViewer.cs (2)
1297
private static void CanExecuteRoutedEventHandler(object target,
CanExecuteRoutedEventArgs
args)
1351
private void PreviewCanExecuteRoutedEventHandler(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\Windows\Controls\StickyNote.cs (1)
1780
private static void _OnQueryCommandEnabled(object sender,
CanExecuteRoutedEventArgs
args)
src\Framework\System\Windows\Controls\TextBox.cs (1)
1908
private static void OnQueryScrollCommand(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
594
private void QueryCopy(object sender,
CanExecuteRoutedEventArgs
e)
src\Framework\System\windows\Documents\TextEditor.cs (2)
1928
private static void OnQueryStatusUndo(object sender,
CanExecuteRoutedEventArgs
args)
1948
private static void OnQueryStatusRedo(object sender,
CanExecuteRoutedEventArgs
args)
src\Framework\System\windows\Documents\TextEditorCharacters.cs (1)
476
private static void OnQueryStatusNYI(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (5)
606
private static void OnQueryStatusCut(object target,
CanExecuteRoutedEventArgs
args)
658
private static void OnQueryStatusCopy(object target,
CanExecuteRoutedEventArgs
args)
711
private static void OnQueryStatusPaste(object target,
CanExecuteRoutedEventArgs
args)
764
private static void OnQueryStatusCopyFormat(object target,
CanExecuteRoutedEventArgs
args)
786
private static void OnQueryStatusPasteFormat(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\windows\Documents\TextEditorLists.cs (2)
96
private static void OnQueryStatusTab(object sender,
CanExecuteRoutedEventArgs
args)
111
private static void OnQueryStatusNYI(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\windows\Documents\TextEditorParagraphs.cs (1)
184
private static void OnQueryStatusNYI(object sender,
CanExecuteRoutedEventArgs
e)
src\Framework\System\windows\Documents\TextEditorSelection.cs (2)
1977
private static void OnQueryStatusKeyboardSelection(object target,
CanExecuteRoutedEventArgs
args)
1992
private static void OnQueryStatusCaretNavigation(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\windows\Documents\TextEditorSpelling.cs (1)
242
private static void OnQueryStatusSpellingError(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\windows\Documents\TextEditorTables.cs (1)
127
private static void OnQueryStatusNYI(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\windows\Documents\TextEditorTyping.cs (5)
440
private static void OnQueryStatusCorrectionList(object target,
CanExecuteRoutedEventArgs
args)
1048
private static void OnQueryStatusEnterBreak(object sender,
CanExecuteRoutedEventArgs
args)
1329
private static void OnQueryStatusTabForward(object sender,
CanExecuteRoutedEventArgs
args)
1345
private static void OnQueryStatusTabBackward(object sender,
CanExecuteRoutedEventArgs
args)
1878
private static void OnQueryStatusNYI(object target,
CanExecuteRoutedEventArgs
args)
src\Framework\System\Windows\Navigation\NavigationWindow.cs (4)
1048
private static void OnQueryGoBack(object sender,
CanExecuteRoutedEventArgs
e)
1063
private static void OnQueryGoForward(object sender,
CanExecuteRoutedEventArgs
e)
1078
private static void OnQueryRefresh(object sender,
CanExecuteRoutedEventArgs
e)
1092
private static void OnQueryBrowseStop(object sender,
CanExecuteRoutedEventArgs
e)
System.Activities.Core.Presentation (12)
System\Activities\Core\Presentation\CaseDesigner.xaml.cs (3)
131
void OnAddAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
144
void OnEditAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
158
void OnDeleteAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
System\Activities\Core\Presentation\CatchDesigner.xaml.cs (3)
125
void OnAddAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
138
void OnEditAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
152
void OnDeleteAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
System\Activities\Core\Presentation\FlowchartDesigner.xaml.cs (4)
170
void OnSetAsStartNodeCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
2066
void OnConnectNodesCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
2102
void OnShowAllConditionsCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
2114
void OnHideAllConditionsCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
System\Activities\Core\Presentation\StateDesigner.xaml.cs (1)
132
void OnSetAsInitialCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (1)
328
void OnCopyCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
System.Activities.Presentation (88)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyValueDialogHost.cs (1)
59
public void OnCanOpenDialogWindow(object sender,
CanExecuteRoutedEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\ContextMenuUtilities.cs (8)
19
public static void OnAddAnnotationCommandCanExecute(
CanExecuteRoutedEventArgs
e, EditingContext editingContext)
24
public static void OnAddAnnotationCommandCanExecute(
CanExecuteRoutedEventArgs
e, EditingContext editingContext, DataGrid dataGrid)
29
public static void OnAddAnnotationCommandCanExecute(
CanExecuteRoutedEventArgs
e, EditingContext editingContext, ModelItem modelItem)
42
public static void OnDeleteAnnotationCommandCanExecute(
CanExecuteRoutedEventArgs
e, EditingContext editingContext)
47
public static void OnDeleteAnnotationCommandCanExecute(
CanExecuteRoutedEventArgs
e, EditingContext editingContext, DataGrid dataGrid)
52
public static void OnDeleteAnnotationCommandCanExecute(
CanExecuteRoutedEventArgs
e, EditingContext editingContext, ModelItem modelItem)
65
public static void OnDeleteAllAnnotationCommandCanExecute(
CanExecuteRoutedEventArgs
e, EditingContext editingContext)
80
public static void OnDeleteCommandCanExecute(
CanExecuteRoutedEventArgs
e, DataGrid dataGrid)
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
176
void OnCopyCanExecute(object s,
CanExecuteRoutedEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\Expressions\TextualExpressionEditor.cs (6)
53
public virtual void OnCompleteWordCommandCanExecute(
CanExecuteRoutedEventArgs
e)
67
public virtual void OnGlobalIntellisenseCommandCanExecute(
CanExecuteRoutedEventArgs
e)
81
public virtual void OnParameterInfoCommandCanExecute(
CanExecuteRoutedEventArgs
e)
95
public virtual void OnQuickInfoCommandCanExecute(
CanExecuteRoutedEventArgs
e)
109
public virtual void OnIncreaseFilterLevelCommandCanExecute(
CanExecuteRoutedEventArgs
e)
123
public virtual void OnDecreaseFilterLevelCommandCanExecute(
CanExecuteRoutedEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeDesigner.xaml.cs (3)
50
void OnAddAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
59
void OnEditAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
68
void OnDeleteAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\View\ArgumentDesigner.xaml.cs (4)
607
private void OnDeleteCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
652
private void OnAddAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
689
private void OnEditAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
727
private void OnDeleteAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
583
void OnCanShowPropertyValueEditor(object sender,
CanExecuteRoutedEventArgs
args)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (42)
614
void OnGoToParentCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
627
void OnCollapseCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
646
void OnCollapseAllCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
659
void OnRestoreCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
673
void OnExpandAllCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
702
void OnExpandInPlaceCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
737
void OnExpandCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
750
void OnCopyCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
765
void OnPasteCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
789
void OnCutCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
803
void OnDeleteCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
828
void OnShowPropertiesCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
873
void OnInsertBreakpointCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
900
void OnDeleteBreakpointCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
930
void OnEnableBreakpointCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
960
void OnDisableBreakpointCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
978
void OnUndoCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
990
void OnRedoCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1010
void OnCommitCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1039
void OnCopyAsImageCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1081
void OnSaveAsImageCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1156
void OnZoomInCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1168
void OnMoveFocusCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1185
void OnToggleSelectionCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1200
void OnZoomOutCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1212
void OnToggleArgumentDesignerCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1229
void OnToggleVariableDesignerCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1242
void OnToggleImportsDesignerCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1293
void OnCreateVariableCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1308
void OnCreateArgumentCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1323
void OnToggleMiniMapCommandExecute(object sender,
CanExecuteRoutedEventArgs
e)
1334
void OnCycleThroughDesignerCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1399
void OnCreateWorkflowElementCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1508
void OnFitToScreenCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1520
void OnResetZoomCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1532
void OnZoomPickerUndoRedoCommandPreviewCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1556
void OnAddAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1566
void OnEditAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1577
void OnDeleteAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1587
void OnShowAllAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1611
void OnHideAllAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1635
void OnDeleteAllAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (7)
486
void OnCommitCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
514
internal void OnCompleteWordCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
530
internal void OnGlobalIntellisenseCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
546
internal void OnParameterInfoCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
562
internal void OnQuickInfoCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
578
internal void OnIncreaseFilterLevelCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
594
internal void OnDecreaseFilterLevelCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (4)
617
private void OnDeleteCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
662
private void OnAddAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
699
private void OnEditAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
737
private void OnDeleteAnnotationCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (11)
1432
public override void OnCompleteWordCommandCanExecute(
CanExecuteRoutedEventArgs
e)
1446
public override void OnGlobalIntellisenseCommandCanExecute(
CanExecuteRoutedEventArgs
e)
1460
public override void OnParameterInfoCommandCanExecute(
CanExecuteRoutedEventArgs
e)
1474
public override void OnQuickInfoCommandCanExecute(
CanExecuteRoutedEventArgs
e)
1487
public override void OnIncreaseFilterLevelCommandCanExecute(
CanExecuteRoutedEventArgs
e)
1500
public override void OnDecreaseFilterLevelCommandCanExecute(
CanExecuteRoutedEventArgs
e)
1513
void OnCutCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1616
void OnCopyCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1641
void OnPasteCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1666
void OnUndoCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
1702
void OnRedoCommandCanExecute(object sender,
CanExecuteRoutedEventArgs
e)