Monday, March 26, 2012

Web Control Property Sub Categories

Hello,

I am creating a web control, in VS 2005, and I want to define sub categories in my properties. I know how to define a category:

<Bindable(True), Category("Appearance") ...

But how to define a main category and then add properties in sub categories?

Thanks,

Miguel

You will need to create aTypeConverter. Here is a good tutorial on this subject:http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=307.


"But how to define a main category and then add properties in sub categories?" --> i guess i know what you want. did you see this kind user-control before? mean, a main category and the sub categories


By SubCategories, do you mean you want to have a predefined select options for the properties? If that is what you are looking for, you need to define a ENUM of the select options and use it for your property values.

Check this linkhttp://www.codeproject.com/aspnet/composite_controls.asp

Thanks

0 comments:

Post a Comment