Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / November 2005

Tip: Looking for answers? Try searching our database.

Grouping properties (like Font does)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
A Ratcliffe - 02 Nov 2005 11:13 GMT
Just a quick question, I hope.

I'm ending up with a lot of similar property names (because they all relate
to the same area of the control) eg CaptionText, CaptionTextColour,
CaptionBackground, CaptionHasGradient, CaptionGradientStart,
CaptionGradientEnd to name just a few.

I know properties like Font collect these 'sub-details' together into a
group (so you only see +Font in the properties until you click on the + and
see all the Bold, Italic, FontName, etc).

I know how to put properties into the Categories, like Appearance, but how
do I gather linked properties together as Font does? For example, it would
make sense to just have '+CaptionBackground', and within that have the
colours, gradient choice, etc.

Thanks in advance for your assistance,

Ann-Marie
A Ratcliffe - 02 Nov 2005 12:27 GMT
Ok, I think I've found the answer (having finally thought to google
'subproperties' instead of 'grouping properties'). It looks like it involves
gathering all the subproperties into a new class, then deriving the
TypeConverter from ExpandableObjectConverter.

Anyone know if you can only have one sub-level of subproperties, or wether
you can sub-group further?

Also, any advice on what access modifier I should use on the
property-grouping classes and their converters and editors? They have no
relevance beyond this control I'm writing (ok, so they may in the future
controls).

Yours,

Ann-Marie

> Just a quick question, I hope.
>
[quoted text clipped - 15 lines]
>
> Ann-Marie

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.