Skip to main content

ICommandSource Interface

An interface for classes that know how to invoke a Command.

Definition​

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public interface ICommandSource
View Source

Properties​

CommandThe command that will be executed when the class is "invoked." Classes that implement this interface should enable or disable based on the command's CanExecute return value. The property may be implemented as read-write if desired.
CommandParameterThe parameter that will be passed to the command when executing the command. The property may be implemented as read-write if desired.
IsEffectivelyEnabledGets a value indicating whether this control and all its parents are enabled.

Methods​

CanExecuteChanged(Object, EventArgs)Called for the CanExecuteChanged event when changes are detected.

See Also​

Reference​

Avalonia.Input Namespace