/// <summary> /// Reset all viewmodel states in accordance with the /// given <paramref name="settings"/> object. This is /// useful when presenting a sequence of different /// progress indicators (eg. infinite first and finite later) /// in 1 dialog. /// </summary> /// <param name="settings"></param> protected void ResetSettings(ProgressSettings settings) { if (_Progress == null) { _Progress = new ProgressViewModel(settings); } _Progress.ResetSettings(settings); IsCancelable = IsCancelButtonVisible = settings.IsCancelable; CloseDialogOnProgressFinished = settings.CloseViewOnProgressFinished; Title = settings.Title; Message = settings.Message; CancelButtonText = settings.CancelButtonText; CloseButtonText = settings.CloseButtonText; DefaultResult = settings.DefaultResult; DefaultCloseResult = settings.DefaultCloseResult; }