Last post May 29, 2005 06:42 AM by WilcoB
May 28, 2005 03:25 PM|WhatThe12|LINK
May 29, 2005 06:40 AM|joteke|LINK
check usage of
ParseChildren attribute. With it you can tell what is the default property that child elements of your control will correspond to. In that case, there's no extra element in aspx (inside dg declaration) which indicates the property (like in your example) and
child tags can correspond only to this one property (therefore it is called default property). You'd also apply
PersistenceMode(PersistenceMode.InnerDefaultProperty) attribute to the property in question so that designer will persist the property correctly.
But there can also be more of these inner properties like with DG
<HeaderStyle Font-Bold="true" />
where there can be multiple properties specified declaratively (styles, columns etc etc). These can be specified by applying PersistenceMode(PersistenceMode.InnerProperty) and in that case there of course would not be any default property specified.
May 29, 2005 06:42 AM|WilcoB|LINK