equiv
12-03-2005, 07:55 PM
Hi, I added some design time support for Content and ContentPlaceHolder.
In Spring.Web\Web\UI\Controls\Content.cs:
/// ...
[Designer("System.Web.UI.Design.ReadWriteControlDesigner, System.Design")]
[PersistChildren(true)]
[ParseChildren(false)]
public class Content : Control
{
...
}
The same for ContentPlaceHolder.cs.
I know it could be much more enhanced by inheriting ReadWriteControlDesigner similar to what the Panel designer does but at this time it's working fine for me.
Any comments?
Esteban
In Spring.Web\Web\UI\Controls\Content.cs:
/// ...
[Designer("System.Web.UI.Design.ReadWriteControlDesigner, System.Design")]
[PersistChildren(true)]
[ParseChildren(false)]
public class Content : Control
{
...
}
The same for ContentPlaceHolder.cs.
I know it could be much more enhanced by inheriting ReadWriteControlDesigner similar to what the Panel designer does but at this time it's working fine for me.
Any comments?
Esteban