Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions blazor/stepper/steps-validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ You can validate the fields within the stepper component. In the below shared ex
private bool ValidateCurrentStep()
{
bool isStepValid = true;
var context = new ValidationContext(model);
var validationResults = new List<ValidationResult>();
var context = new System.ComponentModel.DataAnnotations.ValidationContext(model);
var validationResults = new List<System.ComponentModel.DataAnnotations.ValidationResult>();
isStepValid = Validator.TryValidateObject(model, context, validationResults, true);
if (currentStep == 1)
Expand Down