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