What I should do to not Validate form First time?
-
I have ViewModel that has implement IDataErrorInfo interface. Binding is working fine but Now I have a requirement that error Template should not be shown until user lost focus through the Text Box. Currently when form Loaded all the fields are validated and showing red border.
WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP
-
I have ViewModel that has implement IDataErrorInfo interface. Binding is working fine but Now I have a requirement that error Template should not be shown until user lost focus through the Text Box. Currently when form Loaded all the fields are validated and showing red border.
WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP
You could toggle a boolean variable that is set when you are loading data and reset once this is done. Only allow the validation code to run when the state of the bool is false. E.g.
If (!load)
{
//IDataErrorInfo Validation code
}Build your own survey - http://www.factile.net