I need to develop an application windows phone 7.
And for obvious reasons I have to validate my forms.
I usually program in WPF and uses the principle of ValidationRule. But I can not find the same principle in windows phone 7.
Hence my question, how to create a form validation.
Windows Phone doesn’t support form validations out of the box.
Here’s a blog post that describes how to roll a custom control to implement validation rules.
The way I would handle this in one of my own apps would be to put the validation logic in my model class and create an
IsValidproperty on the model. The model class would also have anErrorproperty with an error message describing the validation issue. My UI layer would callmyModel.IsValid, and display the error message if something was wrong.