Greetings, how can I validate if value in TextBlock is ok? I have a TextBox where I bind "Amount" property and a TextBlock which uses Multibinding: Price Property and Amount property. I would like to do something like that: In case of changing Amount i would like to validate if the price is greater than xx (which is the constant). Thanks in advance
A:
i know how to create validation rules. I just want to fire validation in my TextBlock when the value in other control (TextBox) changes.
Peter
2009-10-14 08:27:52
This is not really an answer, it's more of a comment...
Pieter Breed
2009-10-14 08:29:31
A:
There is a simple flag in XAML that sets when to validate.
<'local:ValidationRules ValidatesOnTargetUpdated="True" />
Hope that helps.
Tri Q
2009-10-14 12:23:42