SourceAwareCommandTEventArgs(ActionICommandSourceTEventArgs, ICommandState) Constructor
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
public SourceAwareCommand(
Action<ICommandSource<TEventArgs>, ICommandState> callback
)
Public Sub New (
callback As Action(Of ICommandSource(Of TEventArgs), ICommandState)
)
public:
SourceAwareCommand(
Action<ICommandSource<TEventArgs>^, ICommandState^>^ callback
)
new :
callback : Action<ICommandSource<'TEventArgs>, ICommandState> -> SourceAwareCommand
Parameters
- callback ActionICommandSourceTEventArgs, ICommandState
- A delegate to invoke when the command is triggered.