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