Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a property without subclassing
Message
De
07/03/2004 17:00:36
 
 
À
07/03/2004 14:51:25
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00883926
Message ID:
00883943
Vues:
10
Hey Kevin,

We're using one of the competitors .. DevExpress.

I'm not sure you can add properties without subclassing. If you can, I've never done it so I can't help you with that.

However, I wonder if you *have* to design your ExplorerBar in the IDE. Can you do it programmatically? Then you could have ButtonItem subclasses. We add all our Groups and Buttons programmatically ... nothing in the IDE at all (but since we're using a different 3rd party tool than you're using, I don't know how yours works).

~~Bonnie


>This probably can't be done, but figured it's worth asking.
>
>I'm using a third party control (DevComponents) to create an ExplorerBar as part of a C# form.
>
>The control has 3 levels...the main level (vertical menu), and a second level for groups, and a third level for individual button items (DevComponents.DotNetBar.ButtonItem). The
>
>I'd like to be able to subclass the button item, because I want to add a few properties to it and maybe even set up an interface. However, the way the control's designer works, it appears that I'm 'locked in' to "DevComponents.DotNetBar.ButtonItem".
>
>In the form where I'm using the control, can I add a few properties, without subclassing?
>
>I do have a workaround...the control has several existing properties that aren't being used, so I can use them to 'fake' an interface.
>
>Thanks,
>Kevin
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform