UserControls and Control Designers
-
Can a UserControl be configured to use a ControlDesigner? I have a UserControl that exposes several properties and I would like them to show in the IDE when I add the control to a webform. At the moment all the controls that I add show the standard grey box and the designer thinks that it is a UserControl, not my derived class. I have implemeted a class derived from ControlDesigner and added the attribute to my control classes code behind file
Designer(typeof (ProductCatalog.Design.CategoryDesigner))]
In the Designer I have implement proxies for my controls properties like thispublic int TargetID { get { return ((Category)this.Component).TargetID; } set { ((Category)this.Component).TargetID = value; } }
But it does not make any difference, what an I missing? Thanks Stephen.