ICommandBindingAddTarget(FuncObject) Method
Adds a target getter function to this
ICommandBinding instance. Whenever the underlying
ICommand executes it will evaluate the specified getter delegate.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
ICommandBinding AddTarget(
Func<Object> getTarget
)
Function AddTarget (
getTarget As Func(Of Object)
) As ICommandBinding
ICommandBinding^ AddTarget(
Func<Object^>^ getTarget
)
abstract AddTarget :
getTarget : Func<Object> -> ICommandBinding
- getTarget FuncObject
- A function, which returns the target when the underlying ICommand is executed.
ICommandBindingThis
ICommandBinding instance to provide fluent initialization.