Table of Contents

Interface ICommandSource

Namespace
Icy.Input
Assembly
IcyUI.dll

Represents an interface for types that can invoke commands.

public interface ICommandSource
Extension Methods

Properties

Command

Gets the command that will be executed when the class is "invoked".

ICommand? Command { get; }

Property Value

ICommand

Remarks

If the command can't be executed according to CanExecute(object), controls that implement this interface should be disabled.

CommandParameter

Gets the command parameter that will be passed to the command when executing.

object? CommandParameter { get; }

Property Value

object

Methods

CanExecuteChanged(object, EventArgs)

Called when CanExecuteChanged is raised.

void CanExecuteChanged(object sender, EventArgs e)

Parameters

sender object

Command that sent an event.

e EventArgs

Args for the event.