Click or drag to resize

DelegateCommandT Constructor (ActionT)

Initializes a new instance of the DelegateCommandT class with the execute callback.

This version generates more compact code; not recommended for in-line delegates.

Namespace:  TomsToolbox.Wpf
Assembly:  TomsToolbox.Wpf (in TomsToolbox.Wpf.dll)
Syntax
public DelegateCommand(
	Action<T>? executeCallback
)

Parameters

executeCallback
Type: SystemActionT
The default execute callback.
Examples
C#
public ICommand AboutCommand
{
    get
    {
        return new DelegateCommand<Item>(item => ShowAboutBox(item));
    }
}
See Also