I researched about validation tehniques on net and found this article
http://www.codeproject.com/Articles/97564/Attributes-based-Validation-in-a-WPF-MVVM-Applicat
Does anyone know why validation is not happening if you remove ErrorMessage=”” from the attribute?
this works
[Required(ErrorMessage="error message")]
this doesn’t
[Required()]
You should always retrieve error message with ValidationAttribute.FormatErrorMessage method because it has fallback mechanism to use default value if direct message through ErrorMessage property is not specified or if resource based error message is not specified.