Hi,
Please let me know how to validate mutiple textboxes in Silverlight3 on LostFocus event. I tried with LostFocus event but the application gets hanged for tab changes.
private void txtFirstName_LostFocus(object sender, RoutedEventArgs e)
{
txtFirstName.ClearValidationError();
if (string.IsNullOrEmpty(txtFirstName.Text))
{
txtFirstName.SetValidation("Please enter First Name");
txtFirstName.RaiseValidationError();
IsValid = false;
txtFirstName.Focus();
}
}
Thanks in advance.
Loading

Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Sep 20, 2011, 10:55 PM EDT
Just follow this.
Validating Textbox on Lost Focus in RIA Service, Silverlight 4
Priya LingeRank #785 · 2.9K reputationPosted Sep 20, 2011, 11:38 PM EDT
Hi,
Please check attached code.In this code i have 3 classes which is made for
validation(we can validates multiple textboxes here).
1.BindValidation.cs
2.Extention.cs
3.CustomeValidation.cs
Hope this will help you.
Thanks.
vijay rags58 reputationPosted Sep 21, 2011, 1:29 AM EDT
vijay rags58 reputationPosted Sep 21, 2011, 1:31 AM EDT