Last post Jun 02, 2009 04:21 AM by DaeMoohn
May 29, 2009 11:14 AM|DaeMoohn|LINK
Hi. I would like to ask if in a custom control builder i am able to navigate to the container of that control?
i.e. i have a button in a table row. i would like to read, in the button's control builder, a value in another cell of that row. is that possible? (or even the datavaluekeys of that row)
Jun 02, 2009 03:57 AM|Allen Chen – MSFT|LINK
It's possible to figure out the type of the parent of the control but it's hard to get the value of it since the ControlBuilder is called in an early parser stage but the value of the control is generally set in the page life cycle, which is later than the
Jun 02, 2009 04:21 AM|DaeMoohn|LINK
As a matter of fact, I noticed that the binding expressions are not evaluated at that early point, but far more later. The parent, a listview, would've cointained lots of bindings, so that the control builder doesn't seem the right spot for coding binding-related