Select to view content in your preferred language

Custom Control Classes

566
0
03-01-2011 05:54 AM
FredNewcomer1
New Contributor
Is there any way for a class derived from the custom controls in the API (Button, Checkbox, etc.) to access the the ID defined for it in the AddIns.xml file?  It would be very helpful (and good OO practice) to use one generic class to handle all add-in controls of a particular type.  That way, program logic in an associated extension could access properties, and receive events, from a collection of controls.

I am developing a "family" of related add-ins that use this approach, and it works quite nicely -- but it relies entirely on the order in which controls are loaded to identify them.  Since different users require different configurations, overall flexibility is compromised and there is some real potential for conflict.  Each control has a unique ID, but it doesn't know what it is...  Any thoughts, anyone?  Thanks.
0 Kudos
0 Replies