ICommandBindingAddTarget(FuncObject) Method

Adds a target getter function to this ICommandBinding instance. Whenever the underlying ICommand executes it will evaluate the specified getter delegate.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
ICommandBinding AddTarget(
	Func<Object> getTarget
)

Parameters

getTarget  FuncObject
A function, which returns the target when the underlying ICommand is executed.

Return Value

ICommandBinding
This ICommandBinding instance to provide fluent initialization.

See Also