[]
Initializes a new instance of the DelegateCommand class.
public DelegateCommand(Action<object> execute)
Type | Name | Description |
---|---|---|
Action<object> | execute | The execute delegate. |
Initializes a new instance of the DelegateCommand class.
public DelegateCommand(Action<object> execute, Predicate<object> canExecute)
Type | Name | Description |
---|---|---|
Action<object> | execute | The execute delegate. |
Predicate<object> | canExecute | The can execute delegate. |