Last post Sep 18, 2008 11:39 PM by Momo_Stev
Sep 14, 2008 03:51 PM|dgoyette|LINK
I've made a fairly simple Server Control. It extends "Panel", and basically just puts a title bar above the panel. That works fine. However, it's the Designer I'm having some trouble with.
I've made a customer Designer, extending PanelContainerDesigner, and overriding the FrameCaption so that it puts the objects title as the groupText. This isn't the way I want it, but it at least gave me something simple to look at. Instead, I'd like to have
the Designer output to match the actual appearance of my control when it's rendered live.
Does anyone have any references that explain advanced features of making a Designer? My requirements are: It must be a Container, so that people can still Drag/Drop items into it within the Designer View, just like any other panel. It should look just like
the control will look when it's loaded in the real page.
Included below is the interim code I'm using to make my simple designer, but I'd really like to have a Designer that matches the output of my actual control.
public class CollapsingPanelDesigner : PanelContainerDesigner
public override void Initialize(IComponent component)
_panel = (CollapsingPanel)component;
public override string FrameCaption
return (_panel.Title == null || _panel.Title.Trim() == "") ? "Collapsing Panel" : _panel.Title;
Sep 18, 2008 11:39 PM|Momo_Stev|LINK