Have a look at Binding Validation Sample from MSDN if it helps.