1 interface inheriting from ICommand
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Input\IPreviewCommand.cs (1)
13public interface IPreviewCommand : ICommand
4 implementations of ICommand
Microsoft.Maui.Controls (1)
Command.cs (1)
64 public class Command : ICommand
Microsoft.VisualStudio.LanguageServices (1)
Utilities\DelegateCommand.cs (1)
10internal class DelegateCommand : ICommand
PresentationCore (1)
System\Windows\Input\Command\RoutedCommand.cs (1)
16public class RoutedCommand : ICommand
System.Windows.Forms.Tests (1)
System\Windows\Forms\Mocks\DataBinding\RelayCommand.cs (1)
12public class RelayCommand : System.Windows.Input.ICommand
304 references to ICommand
Microsoft.Maui.Controls (147)
Button\Button.cs (2)
189 public ICommand Command 191 get { return (ICommand)GetValue(CommandProperty); }
Button\ButtonElement.cs (1)
14 nameof(IButtonElement.Command), typeof(ICommand), typeof(IButtonElement), null,
Cells\TextCell.cs (8)
12 public static readonly BindableProperty CommandProperty = BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(TextCell), default(ICommand), 16 var oldcommand = (ICommand)oldvalue; 22 var newcommand = (ICommand)newvalue; 54 public ICommand Command 56 get { return (ICommand)GetValue(CommandProperty); }
ClickGestureRecognizer.cs (4)
13 public static readonly BindableProperty CommandProperty = BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(ClickGestureRecognizer), null); 30 public ICommand Command 32 get { return (ICommand)GetValue(CommandProperty); } 63 ICommand cmd = Command;
CommandElement.cs (2)
13 if (o is ICommand oldCommand) 20 if (n is ICommand newCommand)
DragAndDrop\DragGestureRecognizer.cs (6)
17 public static readonly BindableProperty DropCompletedCommandProperty = BindableProperty.Create(nameof(DropCompletedCommand), typeof(ICommand), typeof(DragGestureRecognizer), null); 23 public static readonly BindableProperty DragStartingCommandProperty = BindableProperty.Create(nameof(DragStartingCommand), typeof(ICommand), typeof(DragGestureRecognizer), null); 61 public ICommand DropCompletedCommand 63 get { return (ICommand)GetValue(DropCompletedCommandProperty); } 79 public ICommand DragStartingCommand 81 get { return (ICommand)GetValue(DragStartingCommandProperty); }
DragAndDrop\DropGestureRecognizer.cs (9)
18 public static readonly BindableProperty DragOverCommandProperty = BindableProperty.Create(nameof(DragOverCommand), typeof(ICommand), typeof(DropGestureRecognizer), null); 24 public static readonly BindableProperty DragLeaveCommandProperty = BindableProperty.Create(nameof(DragLeaveCommand), typeof(ICommand), typeof(DropGestureRecognizer), null); 30 public static readonly BindableProperty DropCommandProperty = BindableProperty.Create(nameof(DropCommand), typeof(ICommand), typeof(DragGestureRecognizer), null); 52 public ICommand DragOverCommand 54 get { return (ICommand)GetValue(DragOverCommandProperty); } 65 public ICommand DragLeaveCommand 67 get { return (ICommand)GetValue(DragLeaveCommandProperty); } 79 public ICommand DropCommand 81 get { return (ICommand)GetValue(DropCommandProperty); }
Entry\Entry.cs (4)
22 public static readonly BindableProperty ReturnCommandProperty = BindableProperty.Create(nameof(ReturnCommand), typeof(ICommand), typeof(Entry), default(ICommand)); 141 public ICommand ReturnCommand 143 get => (ICommand)GetValue(ReturnCommandProperty);
ICommandElement.cs (1)
10 ICommand? Command { get; }
ImageButton\ImageButton.cs (2)
109 public ICommand Command 111 get { return (ICommand)GetValue(CommandProperty); }
ISwipeItem.cs (1)
10 ICommand Command { get; set; }
Items\CarouselView.cs (8)
102 BindableProperty.Create(nameof(CurrentItemChangedCommand), typeof(ICommand), typeof(CarouselView)); 116 public ICommand CurrentItemChangedCommand 118 get => (ICommand)GetValue(CurrentItemChangedCommandProperty); 135 var command = carouselView.CurrentItemChangedCommand; 159 BindableProperty.Create(nameof(PositionChangedCommand), typeof(ICommand), typeof(CarouselView)); 174 public ICommand PositionChangedCommand 176 get => (ICommand)GetValue(PositionChangedCommandProperty); 247 var command = carousel.PositionChangedCommand;
Items\ItemsView.cs (3)
53 BindableProperty.Create(nameof(RemainingItemsThresholdReachedCommand), typeof(ICommand), typeof(ItemsView), null); 56 public ICommand RemainingItemsThresholdReachedCommand 58 get => (ICommand)GetValue(RemainingItemsThresholdReachedCommandProperty);
Items\SelectableItemsView.cs (4)
32 BindableProperty.Create(nameof(SelectionChangedCommand), typeof(ICommand), typeof(SelectableItemsView)); 63 public ICommand SelectionChangedCommand 65 get => (ICommand)GetValue(SelectionChangedCommandProperty); 154 var command = selectableItemsView.SelectionChangedCommand;
ListView\ListView.cs (10)
34 public static readonly BindableProperty RefreshCommandProperty = BindableProperty.Create(nameof(RefreshCommand), typeof(ICommand), typeof(ListView), null, propertyChanged: OnRefreshCommandChanged); 240 public ICommand RefreshCommand 242 get { return (ICommand)GetValue(RefreshCommandProperty); } 364 ICommand command = RefreshCommand; 709 var oldCommand = (ICommand)oldValue; 710 var command = (ICommand)newValue; 715 void OnRefreshCommandChanged(ICommand oldCommand, ICommand newCommand)
Menu\MenuItem.cs (3)
20 nameof(Command), typeof(ICommand), typeof(MenuItem), null, 63 public ICommand Command 65 get => (ICommand)GetValue(CommandProperty);
PointerGestureRecognizer.cs (20)
16 public static readonly BindableProperty PointerEnteredCommandProperty = BindableProperty.Create(nameof(PointerEnteredCommand), typeof(ICommand), typeof(PointerGestureRecognizer), null); 26 public static readonly BindableProperty PointerExitedCommandProperty = BindableProperty.Create(nameof(PointerExitedCommand), typeof(ICommand), typeof(PointerGestureRecognizer), null); 36 public static readonly BindableProperty PointerMovedCommandProperty = BindableProperty.Create(nameof(PointerMovedCommand), typeof(ICommand), typeof(PointerGestureRecognizer), null); 46 public static readonly BindableProperty PointerPressedCommandProperty = BindableProperty.Create(nameof(PointerPressedCommand), typeof(ICommand), typeof(PointerGestureRecognizer), null); 56 public static readonly BindableProperty PointerReleasedCommandProperty = BindableProperty.Create(nameof(PointerReleasedCommand), typeof(ICommand), typeof(PointerGestureRecognizer), null); 99 public ICommand PointerEnteredCommand 101 get { return (ICommand)GetValue(PointerEnteredCommandProperty); } 117 public ICommand PointerExitedCommand 119 get { return (ICommand)GetValue(PointerExitedCommandProperty); } 135 public ICommand PointerMovedCommand 137 get { return (ICommand)GetValue(PointerMovedCommandProperty); } 153 public ICommand PointerPressedCommand 155 get { return (ICommand)GetValue(PointerPressedCommandProperty); } 171 public ICommand PointerReleasedCommand 173 get { return (ICommand)GetValue(PointerReleasedCommandProperty); } 191 ICommand cmd = PointerEnteredCommand; 204 ICommand cmd = PointerExitedCommand; 217 ICommand cmd = PointerMovedCommand; 230 ICommand cmd = PointerPressedCommand; 243 ICommand cmd = PointerReleasedCommand;
RefreshView\RefreshView.cs (4)
71 BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(RefreshView), 77 public ICommand Command 79 get { return (ICommand)GetValue(CommandProperty); } 115 ICommand ICommandElement.Command => Command;
SearchBar\SearchBar.cs (5)
15 nameof(SearchCommand), typeof(ICommand), typeof(SearchBar), null, 94 public ICommand SearchCommand 96 get { return (ICommand)GetValue(SearchCommandProperty); } 115 ICommand ICommandElement.Command => SearchCommand; 129 ICommand cmd = SearchCommand;
Shell\BackButtonBehavior.cs (9)
17 BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(BackButtonBehavior), null, BindingMode.OneTime, 37 public ICommand Command 39 get { return (ICommand)GetValue(CommandProperty); } 82 var oldCommand = (ICommand)oldValue; 83 var newCommand = (ICommand)newValue; 97 void OnCommandChanged(ICommand oldCommand, ICommand newCommand)
Shell\SearchHandler.cs (20)
332 BindableProperty.Create(nameof(ClearPlaceholderCommand), typeof(ICommand), typeof(SearchHandler), null, BindingMode.OneTime, 361 BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(SearchHandler), null, BindingMode.OneTime, 447 public ICommand ClearPlaceholderCommand 449 get { return (ICommand)GetValue(ClearPlaceholderCommandProperty); } 489 public ICommand Command 491 get { return (ICommand)GetValue(CommandProperty); } 582 var command = ClearPlaceholderCommand; 600 var command = Command; 611 var oldCommand = (ICommand)oldValue; 612 var newCommand = (ICommand)newValue; 624 var oldCommand = (ICommand)oldValue; 625 var newCommand = (ICommand)newValue; 669 void OnClearPlaceholderCommandChanged(ICommand oldCommand, ICommand newCommand) 693 void OnCommandChanged(ICommand oldCommand, ICommand newCommand)
Shell\Shell.cs (2)
1521 var command = backButtonBehavior.GetPropertyIfSet<ICommand>(BackButtonBehavior.CommandProperty, null);
Slider\Slider.cs (8)
51 public static readonly BindableProperty DragStartedCommandProperty = BindableProperty.Create(nameof(DragStartedCommand), typeof(ICommand), typeof(Slider), default(ICommand)); 54 public static readonly BindableProperty DragCompletedCommandProperty = BindableProperty.Create(nameof(DragCompletedCommand), typeof(ICommand), typeof(Slider), default(ICommand)); 112 public ICommand DragStartedCommand 114 get { return (ICommand)GetValue(DragStartedCommandProperty); } 119 public ICommand DragCompletedCommand 121 get { return (ICommand)GetValue(DragCompletedCommandProperty); }
SwipeGestureRecognizer.cs (4)
16 public static readonly BindableProperty CommandProperty = BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(SwipeGestureRecognizer), null); 28 public ICommand Command 30 get { return (ICommand)GetValue(CommandProperty); } 117 ICommand cmd = Command;
SwipeView\SwipeItemView.cs (3)
13 public static readonly BindableProperty CommandProperty = BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(SwipeItemView), null, 22 public ICommand Command 24 get => (ICommand)GetValue(CommandProperty);
TapGestureRecognizer.cs (4)
11 public static readonly BindableProperty CommandProperty = BindableProperty.Create(nameof(Command), typeof(ICommand), typeof(TapGestureRecognizer), null); 28 public ICommand? Command 30 get { return (ICommand?)GetValue(CommandProperty); } 58 var cmd = Command;
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)
23[assembly: TypeForwardedTo(typeof(System.Windows.Input.ICommand))]
System\Windows\Input\Command\CanExecuteChangedEventManager.cs (11)
42public static void AddHandler(ICommand source, EventHandler<EventArgs> handler) 52public static void RemoveHandler(ICommand source, EventHandler<EventArgs> handler) 90ICommand command = source as ICommand; 186private void PrivateAddHandler(ICommand source, EventHandler<EventArgs> handler) 204private void PrivateRemoveHandler(ICommand source, EventHandler<EventArgs> handler) 362public HandlerSink(CanExecuteChangedEventManager manager, ICommand source, EventHandler<EventArgs> originalHandler) 413public bool Matches(ICommand source, EventHandler<EventArgs> handler) 415return (_source != null && (ICommand)_source.Target == source) && 423ICommand source = (ICommand)_source.Target;
System\Windows\Input\Command\CanExecuteRoutedEventArgs.cs (3)
27internal CanExecuteRoutedEventArgs(ICommand command, object parameter) 42public ICommand Command 93private ICommand _command;
System\Windows\Input\Command\CommandBinding.cs (5)
33public CommandBinding(ICommand command) 43public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed) 54public CommandBinding(ICommand command, ExecutedRoutedEventHandler executed, CanExecuteRoutedEventHandler canExecute) 77public ICommand Command 199private ICommand _command;
System\Windows\Input\Command\CommandBindingCollection.cs (2)
349internal ICommand FindMatch(object targetElement, InputEventArgs inputEventArgs) 365internal CommandBinding FindMatch(ICommand command, ref int index)
System\Windows\Input\Command\CommandDevice.cs (3)
300internal CommandDeviceEventArgs(CommandDevice commandDevice, int timestamp, ICommand command) 311internal ICommand Command 327private ICommand _command;
System\Windows\Input\Command\CommandManager.cs (3)
277ICommand command = null; 529private static void FindCommandBinding(object sender, RoutedEventArgs e, ICommand command, bool execute) 624private static void FindCommandBinding(CommandBindingCollection commandBindings, object sender, RoutedEventArgs e, ICommand command, bool execute)
System\Windows\Input\Command\ExecutedRoutedEventArgs.cs (3)
27internal ExecutedRoutedEventArgs(ICommand command, object parameter) 42public ICommand Command 74private ICommand _command;
System\Windows\Input\Command\ICommandSource.cs (1)
20ICommand Command
System\Windows\Input\Command\InputBinding.cs (4)
36public InputBinding(ICommand command, InputGesture gesture) 58DependencyProperty.Register("Command", typeof(ICommand), typeof(InputBinding), new UIPropertyMetadata(null, new PropertyChangedCallback(OnCommandPropertyChanged))); 65public ICommand Command 69return (ICommand)GetValue(CommandProperty);
System\Windows\Input\Command\KeyBinding.cs (2)
44public KeyBinding(ICommand command, KeyGesture gesture) : base(command, gesture) 55public KeyBinding(ICommand command, Key key, ModifierKeys modifiers) :
System\Windows\Input\Command\MouseBinding.cs (2)
47internal MouseBinding(ICommand command, MouseAction mouseAction) 57public MouseBinding(ICommand command, MouseGesture gesture) : base(command, gesture)
System\Windows\Input\Command\RoutedCommand.cs (2)
80void ICommand.Execute(object parameter) 90bool ICommand.CanExecute(object parameter)
PresentationFramework (58)
MS\Internal\Commands\CommandHelpers.cs (3)
116ICommand command = commandSource.Command; 153ICommand command = commandSource.Command; 178internal static void ExecuteCommand(ICommand command, object parameter, IInputElement target)
System\Windows\Controls\InkCanvas.cs (1)
2687ICommand command = args.Command;
System\Windows\Controls\MenuItem.cs (11)
380(ICommand)null, 388public ICommand Command 390get { return (ICommand) GetValue(CommandProperty); } 397item.OnCommandChanged((ICommand) e.OldValue, (ICommand) e.NewValue); 400private void OnCommandChanged(ICommand oldCommand, ICommand newCommand) 415private void UnhookCommand(ICommand command) 421private void HookCommand(ICommand command) 1318ICommand command = item as ICommand;
System\Windows\Controls\Primitives\ButtonBase.cs (10)
185typeof(ICommand), 187new FrameworkPropertyMetadata((ICommand)null, 264public ICommand Command 268return (ICommand) GetValue(CommandProperty); 279b.OnCommandChanged((ICommand)e.OldValue, (ICommand)e.NewValue); 282private void OnCommandChanged(ICommand oldCommand, ICommand newCommand) 294private void UnhookCommand(ICommand command) 300private void HookCommand(ICommand command)
System\Windows\Documents\Hyperlink.cs (10)
144typeof(ICommand), 146new FrameworkPropertyMetadata((ICommand)null, 154public ICommand Command 158return (ICommand)GetValue(CommandProperty); 169h.OnCommandChanged((ICommand)e.OldValue, (ICommand)e.NewValue); 172private void OnCommandChanged(ICommand oldCommand, ICommand newCommand) 184private void UnhookCommand(ICommand command) 190private void HookCommand(ICommand command)
System\windows\Documents\TextEditorTyping.cs (2)
1090private static bool HandleEnterBreakForRichText(TextEditor This, ICommand command) 1161private static bool HandleEnterBreakWhenStructuralBoundaryIsCrossed(TextEditor This, ICommand command)
System\Windows\Input\Command\CommandConverter.cs (5)
106ICommand command = ConvertFromHelper( ownerType, localName ); 123internal static ICommand ConvertFromHelper(Type ownerType, string localName ) 125ICommand command = null; 142command = propertyInfo.GetValue(null, null) as ICommand; 149command = fieldInfo.GetValue(null) as ICommand;
System\Windows\Input\Command\CommandValueSerializer.cs (1)
157ICommand command = CommandConverter.ConvertFromHelper( declaringType, commandName );
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
370case 276: t = () => typeof(ICommand); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (2)
6988typeof(System.Windows.Input.ICommand), // type 6993bamlMember.SetDelegate = delegate(object target, object value) { ((System.Windows.Input.CommandBinding)target).Command = (System.Windows.Input.ICommand)value; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
5206typeof(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)
172typeof(ICommand), 180var oldCommand = (ICommand)e.OldValue; 181var newCommand = (ICommand)e.NewValue; 255ICommand command = Command; 276private void UnhookCommand(ICommand command) 283private void HookCommand(ICommand command) 319public ICommand Command 321get { 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)
2796public ICommand Command 2798get { return (ICommand)GetValue(CommandProperty); } 2808typeof(ICommand), 2872ICommand oldCommand = (ICommand)e.OldValue; 2873ICommand newCommand = (ICommand)e.NewValue; 2887private void HookCommand(ICommand command) 2898private void UnhookCommand(ICommand command)
Microsoft\Windows\Controls\Ribbon\RibbonSplitButton.cs (4)
336public ICommand Command 338get { return (ICommand)GetValue(CommandProperty); } 348typeof(ICommand), 350new FrameworkPropertyMetadata((ICommand)null, RibbonHelper.OnCommandChanged));
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (9)
86public ICommand Command 88get { return (ICommand)GetValue(CommandProperty); } 98typeof(ICommand), 162ICommand oldCommand = (ICommand)e.OldValue; 163ICommand newCommand = (ICommand)e.NewValue; 177private void HookCommand(ICommand command) 188private void UnhookCommand(ICommand command)
Microsoft\Windows\Controls\Ribbon\RibbonWindow.cs (5)
29private static ICommand _minimizeWindowCommand = System.Windows.SystemCommands.MinimizeWindowCommand; 30private static ICommand _maximizeWindowCommand = System.Windows.SystemCommands.MaximizeWindowCommand; 31private static ICommand _restoreWindowCommand = System.Windows.SystemCommands.RestoreWindowCommand; 32private static ICommand _closeWindowCommand = System.Windows.SystemCommands.CloseWindowCommand; 33private static ICommand _showSystemMenuCommand = System.Windows.SystemCommands.ShowSystemMenuCommand;
Microsoft\Windows\Input\CommandHelpers.cs (2)
22ICommand command = commandSource.Command; 84ICommand 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"/> 2707/// <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)
10/// <see cref="System.Windows.Input.ICommand"/>.