Im developing a solution in Silverlight 4 with RIA Services. I am using data annotations on my entity to describe validation. I can see these are reflected on the client side code after building. I have a child window which has textboxes bound to a single entity record for editing. The data annotation i have on all the textboxes is the annotation but this does not ever fire until a user has editted a textbox first, left the textbox, re-entered the textbox and then deletes the content. This has no use if i am trying to force someone to fill in a textbox as they may skip straight over the textbox with the required data annotation.
Am i missing something simple here?
Thanks in advance
Validator.TryValidateObject
andValidator.ValidateProperty
. Also set theValidatesOnExceptions
property to true at binding. – vortexwolf