ValidationRules.CheckRules overload

ValidationRules.CheckRules overload

Old forum URL: forums.lhotka.net/forums/t/4286.aspx


skagen00 posted on Monday, February 04, 2008

Hi Rocky,

My current usage of this is:

ValidationRules.CheckRules("SeasonalMonthStart");

I can likely bypass using this method using DependentProperty but it seems to me that this might be a place where being able to specify a property info would be useful, to avoid the string literal.

ValidationRules.CheckRules(_seasonalMonthStart);

Chris

 

skagen00 replied on Monday, February 04, 2008

Sorry, I just realized I could just use _seasonalMonthStart.Name in place of the string literal. Duh.

RockfordLhotka replied on Monday, February 04, 2008

That's true, but I think it should be an overload. My goal is to allow you to use a PropertyInfo where it is natural, without having to resort to tricks like that last post.

Thanks!

Copyright (c) Marimer LLC