Forum Xamarin.Android

An easy way to validate user input?

In ASP.NET MVC, it's very easy to validate user input using data annotations and "ModelState.IsValid".

ModelState is in System.Web.Mvc so I can't use it in Xamarin.

It looks like I will have to do the checks myself in each EditText's TextChanged event. Like if ( nameText.Text.Length <= 0 ), etc...

There must be an easy way for such a common task. Is there?

Tagged:

Posts

Sign In or Register to comment.