Do Something based on Validation Result

Do Something based on Validation Result

Old forum URL:

st3fanus posted on Wednesday, July 24, 2013

Hi all..


I have a case : on my UI I want to do something like display a window or refresh some label base on the result of validation on my certain property and display an error too for INVALID state

BUT as long as I know the result of validation is add on BrokenRulesCollection when InValid, so My Idea is to check on BrokenRuleCollection for that property.

And My Question is I want to check the result as soon as the rule is executed, how to do that ?

Is there any features like hook a callback which is executed when validation finished ?

Note : I use MVVM on SL / WPF.


another sugessstion is welcome


thanks a lot



JonnyBee replied on Thursday, July 25, 2013

There is several possibilities:

  1. Hook into PropertyChanged event and update status (this is what the PropertyStatus does)
  2. Hook into ValidationCompleted event

st3fanus replied on Thursday, July 25, 2013

Hi jonny, nice quick respond.. :) thanks a lot before

Is there any examples for your suggestions ?



JonnyBee replied on Friday, July 26, 2013

As i write in my previous post - look at Csla.Xaml.PropertyStatus

Copyright (c) Marimer LLC