As per my uderstanding of the DesignTimeArch, you can have a BehaviourService for any Designer (even if its not of typeof FormDesigner).
In your customDesigner class while initializing u need to add add adorners and glyphs.
That's all...
See this sample code:
class myControlDesigner: ControlDesigner
{
public override void Initialize(IComponent component)
{
base.Initialize(component);
adorner = new Adorner();
adorner.Glyphs.Add(new MyCustomGlyph(BehaviorService, this.Control));
this.BehaviorService.Adorners.Add(adorner);
}
}
.. and you are done... It will do the functionality mentioned in your MyCustomGlyph class on whichever control this Designer applied to.
Ping me back for any trouble...
r[.]nilesh[@]gmail[.]com
From
http://www.developmentnow.com/g/32_2...t-designer.htm
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com