O
One Machete
Hi,
I have developed a composite control that needs to support resizing in
designer. My research turned up no guidance on the best approach for
this, and I've found no mention of any design-time events fired upon a
control resize or layout change.
SO, my current thought is to put recalculation of the sizes and
positions of the child controls in the OnPreRender override. Anyone
know of any risks I haven't considered or of a better approach?
Of possible relevance: The composite control inherits from and
System.Web.UI.WebControls.Panel and I am using the ms_positioning
attribute to achieve grid layout.
Thanks in advance,
Rich
I have developed a composite control that needs to support resizing in
designer. My research turned up no guidance on the best approach for
this, and I've found no mention of any design-time events fired upon a
control resize or layout change.
SO, my current thought is to put recalculation of the sizes and
positions of the child controls in the OnPreRender override. Anyone
know of any risks I haven't considered or of a better approach?
Of possible relevance: The composite control inherits from and
System.Web.UI.WebControls.Panel and I am using the ms_positioning
attribute to achieve grid layout.
Thanks in advance,
Rich