Silverlight Dataform validation doesn't work
Posted
by VexXtreme
on Stack Overflow
See other posts from Stack Overflow
or by VexXtreme
Published on 2010-04-07T13:36:19Z
Indexed on
2010/04/13
9:12 UTC
Read the original article
Hit count: 471
Hi
I can't get dataform and it's controls to catch exceptions when validating.
Fir instance, I have:
<PasswordBox Password="{Binding Password,Mode=TwoWay,NotifyOnValidationError=true,ValidatesOnExceptions=true}" />
All required properties are set to true.
In the setter of my Password property I throw a ValidationException upon failed validation, but the data form doesn't catch it, it just causes the application to crash as if it were a normal exception.
Am I doing something wrong? Thanks
© Stack Overflow or respective owner