/// <summary> /// Forces to re-evaluate CanExecute on the Prism commands /// </summary> public override void RaiseCanExecuteChanges() { base.RaiseCanExecuteChanges(); SubmitCommand.RaiseCanExecuteChanged(); CloseDialogCommand.RaiseCanExecuteChanged(); }
public async void OnDialogOpened(IDialogParameters parameters) { var progress = new Progress <int>(value => { EvaluationProgress = value; if (value >= 100) { EvaluationCompleted = true; CloseDialogCommand.RaiseCanExecuteChanged(); } }); await _evaluationManager.EvaluateAsync(progress); }