I've just started to follow the EntLib hands on labs for the validation integration with WPF.
What I have found is that my textbox's databinding is firing fine when my validators pass. I have a string property with the following validators;
- Required validator
- StringLengthValidator (with a max length set)
Like I say, the binding fires fine when the validators pass. However, if I then delete the textbox text, for example, (making my textbox again invalid) the binding is not fired and my view model object remains as it was the last time it was valid.
Why is this? Can anyone please show me where I'm going wrong? I would be very grateful.
Thanks.