PDA

View Full Version : Design time support for Content and ContentPlaceHolder


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

Aleks Seovic
12-04-2005, 12:23 AM
Cool, design time support is one of the things that has been on our to-do list for a while, but there was always something else that had a higher priority...

This will at least buy us some time, until we write real designers for all of the Spring controls.

Thanks,

Aleks