Quantcast
Channel: CSLA .NET
Viewing all articles
Browse latest Browse all 764

Do Something based on Validation Result

$
0
0

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

 

stefanus


Viewing all articles
Browse latest Browse all 764

Trending Articles