Click or drag to resize

DelegateCommand Constructor (Action)

Initializes a new instance of the DelegateCommand 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 executeCallback
)

Parameters

executeCallback
Type: SystemAction
The default execute callback.
Examples
C#
public ICommand AboutCommand
{
    get
    {
        return new DelegateCommand(ShowAboutBox);
    }
}
See Also