ICommandExecute Method

Executes the command invoked by the specified source for the specified target.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
void Execute(
	ICommandSource source,
	ICommandState state,
	Object? target,
	Object? parameter
)

Parameters

source  ICommandSource
An ICommandSource object containing information about the source of the command.
state  ICommandState
An ICommandState instance containing the state of the current command binding. The state can be changed during the execution.
target  Object
The target of the execution. Can be if the binding has no targets. If the command binding has multiple targets the Execute method will be invoked multiple times.
parameter  Object
The parameter of the command. Can be if the binding has no parameter. Evaluated once per triggering the command. Even if the binding has multiple targets the Execute method is invoked with the same parameter value for each target.

See Also