Web Custom Control - Multi-level Properties
Posted on 2004-08-16
I am creating a Web Custom Control based on a calendar dll I wrote.
The DLL has a class called CellProperties which had properties such as backcolor, forecolor, etc. Then when I instantialed the dll I would set properties such as:
objCalendar.Heading.BackColor = Color.AliceBlue
objCalendar.Heading,ForeColor = Color.Black
Now, in creating this as a Web Custom Control, I want the properties to appear similar to the way Font shows up in the Propoerties screen. That is, a title of Font with a "plus" box. Then clicking on the "plus" will drop down the sub properties.
How do I do this?
I tried the following, but it doesn't work:
<Bindable(True), Category("Appearence"), DefaultValue("")> Property [Heading]() As myCalendar.CellProperties
Set(ByVal Value As BCP.Web.Calendar.CellProperties)
m_propHeading = Value