ValidationRules.AddDependentProperty doesn't work ?ValidationRules.AddDependentProperty doesn't work ?
Old forum URL: forums.lhotka.net/forums/t/6851.aspx
Programmer1987 posted on Sunday, April 26, 2009
I have two properties each one have two validation roles
these two properties are dependent A1Property , A2Property
I wrote this code : ValidationRules.AddDependentProperty(A1Property, A2Property);
Marjon1 replied on Sunday, April 26, 2009
What do you mean by it doesn't work?
Assuming the following scenario:
You have a validation rule assigned against A1Property & you want that property rule to be fired when A2Property rule changes.
The code that you have should do that. If you want to see a broken rule against A2Property or both (from memory) I believe you have to use:
ValidationRules.AddDependentProperty(A1Property, A2Property,true);
Copyright (c) Marimer LLC