public AsyncCancelCommand(AsyncCommandBase command) { asyncCommandBase = command; asyncCommandBase.PropertyChanged += (sender, e) => CanExecuteChanged?.Invoke(this, EventArgs.Empty); }