public RelayCommand( Action<object> execute, Func<object,bool> canExecute, bool supportsOnUpdate, bool disableWhenBusy )
Public Function New( _ ByVal execute As Action(Of Object), _ ByVal canExecute As Func(Of Object,Boolean), _ Optional ByVal supportsOnUpdate As Boolean, _ Optional ByVal disableWhenBusy As Boolean _ )
Parameters
- execute
- The method to call.
- canExecute
- The method to call to update the state.
- supportsOnUpdate
- Is the command automatically called for a state update. Default is true.
- disableWhenBusy
- Is the command automatically disabled when the main worker thread is busy. Default is true.