Click to See Complete Forum and Search --> : Child control properties


jozemaner
October 21st, 2009, 08:33 PM
Hi. Does anyone knows if there's a way of adding the properties of a control to its parent? Without having to rewrite all the properties...
For example, if I have an user control with a button inside, and I want to have the "text align" property of the button, in the list of properties of the usercontrol. Is that possible?
If not, is there a way of making the child control of an usercontrol editable?
Thanks!

Alsvha
October 22nd, 2009, 01:30 AM
Only way I know off is to either expose the property yourself (which I guess is what you mean with "rewriting it") or expose/access the child control directly using FindControl and make a property to expose the button, or similar things like that.