I have a page where a few textboxes cannot be empty before clicking a Save button.
<TextBox...
<TextBox.Text>
<Binding Path ="LastName" UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<local:StringRequiredValidationRule />
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
My rule works. I have a red border around my textbox until I enter a value. So now I want to add this validation rule to my other text boxes.
Now, how do I disable the Save button until the page has no errors? I do not know what to check to see if there are any validation errors.