3 instantiations of CanExecuteRoutedEventArgs
PresentationCore (3)
System\Windows\Input\Command\CommandBinding.cs (1)
155
CanExecuteRoutedEventArgs canExecuteArgs =
new
(e.Command, e.Parameter)
System\Windows\Input\Command\CommandManager.cs (1)
509
CanExecuteRoutedEventArgs canExecuteArgs = new
CanExecuteRoutedEventArgs
(e.Command, null /* parameter */);
System\Windows\Input\Command\RoutedCommand.cs (1)
322
CanExecuteRoutedEventArgs args = new
CanExecuteRoutedEventArgs
(this, parameter);
97 references to CanExecuteRoutedEventArgs
PresentationCore (15)
System\Windows\Generated\UIElement.cs (2)
2192
private static void OnPreviewCanExecuteThunk(object sender,
CanExecuteRoutedEventArgs
e)
2200
private static void OnCanExecuteThunk(object sender,
CanExecuteRoutedEventArgs
e)
System\Windows\Input\Command\CanExecuteRoutedEventArgs.cs (1)
13
public delegate void CanExecuteRoutedEventHandler(object sender,
CanExecuteRoutedEventArgs
e);
System\Windows\Input\Command\CommandBinding.cs (2)
120
internal void OnCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
155
CanExecuteRoutedEventArgs
canExecuteArgs = new(e.Command, e.Parameter)
System\Windows\Input\Command\CommandManager.cs (8)
438
internal static void OnCanExecute(object sender,
CanExecuteRoutedEventArgs
e)
464
private static bool CanExecuteCommandBinding(object sender,
CanExecuteRoutedEventArgs
e, CommandBinding commandBinding)
509
CanExecuteRoutedEventArgs
canExecuteArgs = new CanExecuteRoutedEventArgs(e.Command, null /* parameter */);
595
CanExecuteRoutedEventArgs
canExArgs = execute ? default : (
CanExecuteRoutedEventArgs
)e;
619
CanExecuteCommandBinding(sender, (
CanExecuteRoutedEventArgs
)e, commandBinding);
641
!execute && CanExecuteCommandBinding(sender, (
CanExecuteRoutedEventArgs
)e, commandBinding);
644
private static void TransferEvent(IInputElement newSource,
CanExecuteRoutedEventArgs
e)
System\Windows\Input\Command\RoutedCommand.cs (2)
322
CanExecuteRoutedEventArgs
args = new CanExecuteRoutedEventArgs(this, parameter);
341
private void CriticalCanExecuteWrapper(object parameter, IInputElement target, bool trusted,
CanExecuteRoutedEventArgs
args)
PresentationFramework (62)
System\Windows\Annotations\AnnotationHelper.cs (6)
382
internal static void OnQueryCreateHighlightCommand(object sender,
CanExecuteRoutedEventArgs
e)
394
internal static void OnQueryCreateTextStickyNoteCommand(object sender,
CanExecuteRoutedEventArgs
e)
406
internal static void OnQueryCreateInkStickyNoteCommand(object sender,
CanExecuteRoutedEventArgs
e)
418
internal static void OnQueryClearHighlightsCommand(object sender,
CanExecuteRoutedEventArgs
e)
430
internal static void OnQueryDeleteStickyNotesCommand(object sender,
CanExecuteRoutedEventArgs
e)
442
internal static void OnQueryDeleteAnnotationsCommand(object sender,
CanExecuteRoutedEventArgs
e)
System\Windows\Controls\DataGrid.cs (12)
2077
private static void OnCanExecuteBeginEdit(object sender,
CanExecuteRoutedEventArgs
e)
2090
protected virtual void OnCanExecuteBeginEdit(
CanExecuteRoutedEventArgs
e)
2282
private static void OnCanExecuteCommitEdit(object sender,
CanExecuteRoutedEventArgs
e)
2299
private bool CanEndEdit(
CanExecuteRoutedEventArgs
e, bool commit)
2325
protected virtual void OnCanExecuteCommitEdit(
CanExecuteRoutedEventArgs
e)
2486
private static void OnCanExecuteCancelEdit(object sender,
CanExecuteRoutedEventArgs
e)
2499
protected virtual void OnCanExecuteCancelEdit(
CanExecuteRoutedEventArgs
e)
2578
private static void OnCanExecuteDelete(object sender,
CanExecuteRoutedEventArgs
e)
2591
protected virtual void OnCanExecuteDelete(
CanExecuteRoutedEventArgs
e)
4329
private static void OnCanExecuteSelectAll(object sender,
CanExecuteRoutedEventArgs
e)
8244
private static void OnCanExecuteCopy(object target,
CanExecuteRoutedEventArgs
args)
8253
protected virtual void OnCanExecuteCopy(
CanExecuteRoutedEventArgs
args)
System\Windows\Controls\DocumentViewer.cs (1)
1726
private static void QueryEnabledHandler(object target,
CanExecuteRoutedEventArgs
args)
System\Windows\Controls\FlowDocumentReader.cs (2)
1376
private static void CanExecuteRoutedEventHandler(object target,
CanExecuteRoutedEventArgs
args)
1603
private void PreviewCanExecuteRoutedEventHandler(object target,
CanExecuteRoutedEventArgs
args)
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1396
private static void CanExecuteRoutedEventHandler(object target,
CanExecuteRoutedEventArgs
args)
1563
private void PreviewCanExecuteRoutedEventHandler(object target,
CanExecuteRoutedEventArgs
args)
System\Windows\Controls\Frame.cs (3)
616
private void OnQueryGoBack(object sender,
CanExecuteRoutedEventArgs
e)
629
private void OnQueryGoForward(object sender,
CanExecuteRoutedEventArgs
e)
661
private void OnQueryRefresh(object sender,
CanExecuteRoutedEventArgs
e)
System\Windows\Controls\InkCanvas.cs (1)
2758
private static void _OnQueryCommandEnabled(object sender,
CanExecuteRoutedEventArgs
args)
System\Windows\Controls\ListBox.cs (1)
676
private static void OnQueryStatusSelectAll(object target,
CanExecuteRoutedEventArgs
args)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1495
private static void CanExecuteRoutedEventHandler(object target,
CanExecuteRoutedEventArgs
args)
System\Windows\Controls\Primitives\ScrollBar.cs (2)
638
private static void OnQueryScrollHereCommand(object target,
CanExecuteRoutedEventArgs
args)
643
private static void OnQueryScrollCommand(object target,
CanExecuteRoutedEventArgs
args)
System\Windows\Controls\ScrollViewer.cs (1)
2578
private static void OnQueryScrollCommand(object target,
CanExecuteRoutedEventArgs
args)
System\Windows\Controls\SinglePageViewer.cs (2)
1287
private static void CanExecuteRoutedEventHandler(object target,
CanExecuteRoutedEventArgs
args)
1341
private void PreviewCanExecuteRoutedEventHandler(object target,
CanExecuteRoutedEventArgs
args)
System\Windows\Controls\StickyNote.cs (1)
1727
private static void _OnQueryCommandEnabled(object sender,
CanExecuteRoutedEventArgs
args)
System\Windows\Controls\TextBox.cs (2)
974
private static void OnCanExecuteClearCommand(object target,
CanExecuteRoutedEventArgs
args)
1908
private static void OnQueryScrollCommand(object target,
CanExecuteRoutedEventArgs
args)
System\Windows\Documents\RubberbandSelector.cs (1)
486
private void QueryCopy(object sender,
CanExecuteRoutedEventArgs
e)
System\windows\Documents\TextEditor.cs (2)
1877
private static void OnQueryStatusUndo(object sender,
CanExecuteRoutedEventArgs
args)
1897
private static void OnQueryStatusRedo(object sender,
CanExecuteRoutedEventArgs
args)
System\windows\Documents\TextEditorCharacters.cs (1)
458
private static void OnQueryStatusNYI(object target,
CanExecuteRoutedEventArgs
args)
System\windows\Documents\TextEditorCopyPaste.cs (5)
478
private static void OnQueryStatusCut(object target,
CanExecuteRoutedEventArgs
args)
523
private static void OnQueryStatusCopy(object target,
CanExecuteRoutedEventArgs
args)
569
private static void OnQueryStatusPaste(object target,
CanExecuteRoutedEventArgs
args)
614
private static void OnQueryStatusCopyFormat(object target,
CanExecuteRoutedEventArgs
args)
636
private static void OnQueryStatusPasteFormat(object target,
CanExecuteRoutedEventArgs
args)
System\windows\Documents\TextEditorLists.cs (2)
78
private static void OnQueryStatusTab(object sender,
CanExecuteRoutedEventArgs
args)
93
private static void OnQueryStatusNYI(object target,
CanExecuteRoutedEventArgs
args)
System\windows\Documents\TextEditorParagraphs.cs (1)
166
private static void OnQueryStatusNYI(object sender,
CanExecuteRoutedEventArgs
e)
System\windows\Documents\TextEditorSelection.cs (2)
1953
private static void OnQueryStatusKeyboardSelection(object target,
CanExecuteRoutedEventArgs
args)
1968
private static void OnQueryStatusCaretNavigation(object target,
CanExecuteRoutedEventArgs
args)
System\windows\Documents\TextEditorSpelling.cs (1)
239
private static void OnQueryStatusSpellingError(object target,
CanExecuteRoutedEventArgs
args)
System\windows\Documents\TextEditorTables.cs (1)
108
private static void OnQueryStatusNYI(object target,
CanExecuteRoutedEventArgs
args)
System\windows\Documents\TextEditorTyping.cs (5)
425
private static void OnQueryStatusCorrectionList(object target,
CanExecuteRoutedEventArgs
args)
1022
private static void OnQueryStatusEnterBreak(object sender,
CanExecuteRoutedEventArgs
args)
1303
private static void OnQueryStatusTabForward(object sender,
CanExecuteRoutedEventArgs
args)
1319
private static void OnQueryStatusTabBackward(object sender,
CanExecuteRoutedEventArgs
args)
1839
private static void OnQueryStatusNYI(object target,
CanExecuteRoutedEventArgs
args)
System\Windows\Navigation\NavigationWindow.cs (4)
1005
private static void OnQueryGoBack(object sender,
CanExecuteRoutedEventArgs
e)
1020
private static void OnQueryGoForward(object sender,
CanExecuteRoutedEventArgs
e)
1035
private static void OnQueryRefresh(object sender,
CanExecuteRoutedEventArgs
e)
1049
private static void OnQueryBrowseStop(object sender,
CanExecuteRoutedEventArgs
e)
PresentationUI (8)
InstallationError.xaml.cs (1)
193
static void OnCanRefresh(object sender,
CanExecuteRoutedEventArgs
e)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (4)
1348
private static void OnApplicationCommandQuery(object target,
CanExecuteRoutedEventArgs
e)
1430
private static void OnNavigationCommandQuery(object sender,
CanExecuteRoutedEventArgs
e)
1483
private static void OnDigSigQuery(object sender,
CanExecuteRoutedEventArgs
e)
1582
private static void OnRMQuery(object sender,
CanExecuteRoutedEventArgs
e)
TenFeetInstallationError.xaml.cs (1)
196
static void OnCanRefresh(object sender,
CanExecuteRoutedEventArgs
e)
TenFeetInstallationProgress.xaml.cs (2)
141
static void OnCanRefresh(object sender,
CanExecuteRoutedEventArgs
e)
156
static void OnCanStop(object sender,
CanExecuteRoutedEventArgs
e)
System.Windows.Controls.Ribbon (12)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (6)
2447
private static void AddToQATCanExecute(object sender,
CanExecuteRoutedEventArgs
args)
2495
private static void MaximizeRibbonCanExecute(object sender,
CanExecuteRoutedEventArgs
args)
2524
private static void MinimizeRibbonCanExecute(object sender,
CanExecuteRoutedEventArgs
args)
2553
private static void RemoveFromQATCanExecute(object sender,
CanExecuteRoutedEventArgs
args)
2582
private static void ShowQATAboveCanExecute(object sender,
CanExecuteRoutedEventArgs
args)
2612
private static void ShowQATBelowCanExecute(object sender,
CanExecuteRoutedEventArgs
args)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (1)
1780
private static void FilterCanExecute(object sender,
CanExecuteRoutedEventArgs
args)
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (5)
165
private static void MinimizeWindowCanExecute(object sender,
CanExecuteRoutedEventArgs
args)
189
private static void MaximizeWindowCanExecute(object sender,
CanExecuteRoutedEventArgs
args)
213
private static void RestoreWindowCanExecute(object sender,
CanExecuteRoutedEventArgs
args)
237
private static void CloseWindowCanExecute(object sender,
CanExecuteRoutedEventArgs
args)
256
private static void SystemMenuCanExecute(object sender,
CanExecuteRoutedEventArgs
args)