i am planning on using PropertyProxyValidator for UI validation but couldn't figure out how to use it with user controls. is it possible to use propertyproxyvalidator
for usercontrols and custom controls? lets say i have a user control named 'ctrlX' and property that i want to validate is exposed using "ctrlXHeight". if i set "controltovalidate" property of propertyproxyvalidator to "ctrlX", how can i set propertyproxyvalidator
to read it value from "ctrlXHeight" property? is this a limitation? fingers crossed it's not.
someone suggested using ValidatedPropertyName but i am not sure if there is any such property and how i can use it.
keeara
Participant
1092 Points
238 Posts
using PropertyProxyValidator with user controls
Sep 18, 2007 12:52 AM|LINK
i am planning on using PropertyProxyValidator for UI validation but couldn't figure out how to use it with user controls. is it possible to use propertyproxyvalidator for usercontrols and custom controls? lets say i have a user control named 'ctrlX' and property that i want to validate is exposed using "ctrlXHeight". if i set "controltovalidate" property of propertyproxyvalidator to "ctrlX", how can i set propertyproxyvalidator to read it value from "ctrlXHeight" property? is this a limitation? fingers crossed it's not.
someone suggested using ValidatedPropertyName but i am not sure if there is any such property and how i can use it.
any help will be greatly appreciated.
User Controls PropertyProxyValidator
------------------