Click or drag to resize

DelegateCommand Constructor

Overload List
 NameDescription
Public methodCode exampleDelegateCommand Initializes a new instance of the DelegateCommand class.

No callback is initially set, so they must be set via the property setters. This usage generates easy readable code even if the delegates are inlined.

Public methodCode exampleDelegateCommand(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.

Public methodCode exampleDelegateCommand(FuncBoolean, Action) Initializes a new instance of the DelegateCommand class.
Top
See Also