Usage
The following code demonstrates the usage of this API. Note that there are breaking changes if you are replacing the previous version.
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
this.UsernameField.Validation().RequiredField("username");
this.PasswordField.Validation().RequiredField("password");
}
Read the original post for implementation details.