2 interfaces inheriting from ICommand
PresentationCore (1)
System\Windows\Input\Command\ISecureCommand.cs (1)
31internal interface ISecureCommand : ICommand
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Input\IPreviewCommand.cs (1)
13public interface IPreviewCommand : ICommand
3 implementations of ICommand
Microsoft.VisualStudio.LanguageServices (1)
Utilities\DelegateCommand.cs (1)
10internal class DelegateCommand : ICommand
PresentationCore (1)
System\Windows\Input\Command\RoutedCommand.cs (1)
27public class RoutedCommand : ICommand
System.Windows.Forms.Tests (1)
System\Windows\Forms\Mocks\DataBinding\RelayCommand.cs (1)
9public class RelayCommand : System.Windows.Input.ICommand
157 references to ICommand
Microsoft.VisualStudio.LanguageServices (1)
StackTraceExplorer\StackTraceExplorerTab.cs (1)
20public ICommand CloseClick { get; }
netstandard (1)
netstandard.cs (1)
2247[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Windows.Input.ICommand))]
PresentationCore (42)
OtherAssemblyAttrs.cs (1)
24[assembly: TypeForwardedTo(typeof(System.Windows.Input.ICommand))]
System\Windows\Input\Command\CanExecuteChangedEventManager.cs (11)
46public static void AddHandler(ICommand source, EventHandler<EventArgs> handler) 56public static void RemoveHandler(ICommand source, EventHandler<EventArgs> handler) 94ICommand command = source as ICommand; 190private void PrivateAddHandler(ICommand source, EventHandler<EventArgs> handler) 208private void PrivateRemoveHandler(ICommand source, EventHandler<EventArgs> handler) 366public HandlerSink(CanExecuteChangedEventManager manager, ICommand source, EventHandler<EventArgs> originalHandler) 417public bool Matches(ICommand source, EventHandler<EventArgs> handler) 419return (_source != null && (ICommand)_source.Target == source) && 427ICommand source = (ICommand)_source.Target;
System\Windows\Input\Command\CanExecuteRoutedEventArgs.cs (3)
31internal CanExecuteRoutedEventArgs(ICommand command, object parameter) 46public ICommand Command 97private ICommand _command;
System\Windows\Input\Command\CommandBinding.cs (5)
41public CommandBinding(ICommand command) 51public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed) 62public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed, CanExecuteRoutedEventHandler canExecute) 85public ICommand Command 207private ICommand _command;
System\Windows\Input\Command\CommandBindingCollection.cs (2)
362internal ICommand FindMatch(object targetElement, InputEventArgs inputEventArgs) 378internal CommandBinding FindMatch(ICommand command, ref int index)
System\Windows\Input\Command\CommandDevice.cs (3)
307internal CommandDeviceEventArgs(CommandDevice commandDevice, int timestamp, ICommand command) 318internal ICommand Command 334private ICommand _command;
System\Windows\Input\Command\CommandManager.cs (3)
288ICommand command = null; 540private static void FindCommandBinding(object sender, RoutedEventArgs e, ICommand command, bool execute) 635private static void FindCommandBinding(CommandBindingCollection commandBindings, object sender, RoutedEventArgs e, ICommand command, bool execute)
System\Windows\Input\Command\ExecutedRoutedEventArgs.cs (3)
31internal ExecutedRoutedEventArgs(ICommand command, object parameter) 46public ICommand Command 78private ICommand _command;
System\Windows\Input\Command\ICommandSource.cs (1)
23ICommand Command
System\Windows\Input\Command\InputBinding.cs (4)
40public InputBinding(ICommand command, InputGesture gesture) 62DependencyProperty.Register("Command", typeof(ICommand), typeof(InputBinding), new UIPropertyMetadata(null, new PropertyChangedCallback(OnCommandPropertyChanged))); 69public ICommand Command 73return (ICommand)GetValue(CommandProperty);
System\Windows\Input\Command\KeyBinding.cs (2)
52public KeyBinding(ICommand command, KeyGesture gesture) : base(command, gesture) 63public KeyBinding(ICommand command, Key key, ModifierKeys modifiers) :
System\Windows\Input\Command\MouseBinding.cs (2)
56internal MouseBinding(ICommand command, MouseAction mouseAction) 66public MouseBinding(ICommand command, MouseGesture gesture) : base(command, gesture)
System\Windows\Input\Command\RoutedCommand.cs (2)
91void ICommand.Execute(object parameter) 101bool ICommand.CanExecute(object parameter)
PresentationFramework (58)
MS\Internal\Commands\CommandHelpers.cs (3)
121ICommand command = commandSource.Command; 158ICommand command = commandSource.Command; 183internal static void ExecuteCommand(ICommand command, object parameter, IInputElement target)
System\Windows\Controls\InkCanvas.cs (1)
2699ICommand command = args.Command;
System\Windows\Controls\MenuItem.cs (11)
390(ICommand)null, 398public ICommand Command 400get { return (ICommand) GetValue(CommandProperty); } 407item.OnCommandChanged((ICommand) e.OldValue, (ICommand) e.NewValue); 410private void OnCommandChanged(ICommand oldCommand, ICommand newCommand) 425private void UnhookCommand(ICommand command) 431private void HookCommand(ICommand command) 1328ICommand command = item as ICommand;
System\Windows\Controls\Primitives\ButtonBase.cs (10)
196typeof(ICommand), 198new FrameworkPropertyMetadata((ICommand)null, 275public ICommand Command 279return (ICommand) GetValue(CommandProperty); 290b.OnCommandChanged((ICommand)e.OldValue, (ICommand)e.NewValue); 293private void OnCommandChanged(ICommand oldCommand, ICommand newCommand) 305private void UnhookCommand(ICommand command) 311private void HookCommand(ICommand command)
System\Windows\Documents\Hyperlink.cs (10)
150typeof(ICommand), 152new FrameworkPropertyMetadata((ICommand)null, 160public ICommand Command 164return (ICommand)GetValue(CommandProperty); 175h.OnCommandChanged((ICommand)e.OldValue, (ICommand)e.NewValue); 178private void OnCommandChanged(ICommand oldCommand, ICommand newCommand) 190private void UnhookCommand(ICommand command) 196private void HookCommand(ICommand command)
System\windows\Documents\TextEditorTyping.cs (2)
1099private static bool HandleEnterBreakForRichText(TextEditor This, ICommand command) 1170private static bool HandleEnterBreakWhenStructuralBoundaryIsCrossed(TextEditor This, ICommand command)
System\Windows\Input\Command\CommandConverter.cs (5)
111ICommand command = ConvertFromHelper( ownerType, localName ); 128internal static ICommand ConvertFromHelper(Type ownerType, string localName ) 130ICommand command = null; 147command = propertyInfo.GetValue(null, null) as ICommand; 154command = fieldInfo.GetValue(null) as ICommand;
System\Windows\Input\Command\CommandValueSerializer.cs (1)
161ICommand command = CommandConverter.ConvertFromHelper( declaringType, commandName );
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
372case 276: t = () => typeof(ICommand); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (2)
6990typeof(System.Windows.Input.ICommand), // type 6995bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Input.CommandBinding)target).Command = (System.Windows.Input.ICommand)value; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5208typeof(System.Windows.Input.ICommand),
System\Windows\Markup\KnownTypes.cs (1)
5830case KnownElements.ICommand: t = typeof(System.Windows.Input.ICommand); break;
System\Windows\Shell\ThumbButtonInfo.cs (10)
175typeof(ICommand), 183var oldCommand = (ICommand)e.OldValue; 184var newCommand = (ICommand)e.NewValue; 258ICommand command = Command; 279private void UnhookCommand(ICommand command) 286private void HookCommand(ICommand command) 322public ICommand Command 324get { return (ICommand)GetValue(CommandProperty); }
System (1)
src\libraries\shims\System\ref\System.cs (1)
937[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Windows.Input.ICommand))]
System.Windows (1)
System.Windows.cs (1)
12[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Windows.Input.ICommand))]
System.Windows.Controls.Ribbon (29)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (9)
2798public ICommand Command 2800get { return (ICommand)GetValue(CommandProperty); } 2810typeof(ICommand), 2874ICommand oldCommand = (ICommand)e.OldValue; 2875ICommand newCommand = (ICommand)e.NewValue; 2889private void HookCommand(ICommand command) 2900private void UnhookCommand(ICommand command)
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (4)
338public ICommand Command 340get { return (ICommand)GetValue(CommandProperty); } 350typeof(ICommand), 352new FrameworkPropertyMetadata((ICommand)null, RibbonHelper.OnCommandChanged));
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (9)
88public ICommand Command 90get { return (ICommand)GetValue(CommandProperty); } 100typeof(ICommand), 164ICommand oldCommand = (ICommand)e.OldValue; 165ICommand newCommand = (ICommand)e.NewValue; 179private void HookCommand(ICommand command) 190private void UnhookCommand(ICommand command)
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (5)
34private static ICommand _minimizeWindowCommand = System.Windows.SystemCommands.MinimizeWindowCommand; 35private static ICommand _maximizeWindowCommand = System.Windows.SystemCommands.MaximizeWindowCommand; 36private static ICommand _restoreWindowCommand = System.Windows.SystemCommands.RestoreWindowCommand; 37private static ICommand _closeWindowCommand = System.Windows.SystemCommands.CloseWindowCommand; 38private static ICommand _showSystemMenuCommand = System.Windows.SystemCommands.ShowSystemMenuCommand;
Microsoft\Windows\Input\CommandHelpers.cs (2)
31ICommand command = commandSource.Command; 93ICommand command = commandSource.Command;
System.Windows.Forms (23)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (9)
51private Input.ICommand? _command; 182/// Gets or sets the <see cref="Input.ICommand"/> whose <see cref="Input.ICommand.Execute(object?)"/> 190public Input.ICommand? Command 197/// Occurs when the <see cref="Input.ICommand.CanExecute(object?)"/> status of the 198/// <see cref="Input.ICommand"/> which is assigned to the <see cref="Command"/> property has changed. 210/// Occurs when the assigned <see cref="Input.ICommand"/> of the <see cref="Command"/> property has changed. 222/// Gets or sets the parameter that is passed to the <see cref="Input.ICommand"/> 1058/// <see cref="Input.ICommand.Execute(object?)"/> if the context allows.
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (9)
53private Input.ICommand? _command; 401/// Gets or sets the <see cref="Input.ICommand"/> whose <see cref="Input.ICommand.Execute(object?)"/> 409public Input.ICommand? Command 416/// Occurs when the <see cref="Input.ICommand.CanExecute(object?)"/> status of the 417/// <see cref="Input.ICommand"/> which is assigned to the <see cref="Command"/> property has changed. 429/// Occurs when the assigned <see cref="Input.ICommand"/> of the <see cref="Command"/> property has changed. 441/// Gets or sets the parameter that is passed to the <see cref="Input.ICommand"/> 2715/// <see cref="Input.ICommand.Execute(object?)"/> if the context allows.
System\Windows\Forms\DataBinding\ICommandBindingTargetProvider.cs (5)
23ICommand? Command { get; set; } 67ICommand? newCommand, 68ref ICommand? commandBackingField) 90ICommand? newCommand, 91ref ICommand? commandBackingField)
System.Windows.Forms.Tests (1)
System\Windows\Forms\Mocks\DataBinding\RelayCommand.cs (1)
7/// <see cref="System.Windows.Input.ICommand"/>.