| 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
)
Public Sub New (
executeCallback As Action
)
Parameters
- executeCallback
- Type: SystemAction
The default execute callback.
Examples public ICommand AboutCommand
{
get
{
return new DelegateCommand(ShowAboutBox);
}
}
See Also