I have a control MyControl which inherits from MyControlBase. MyControlBase has on it at UltraToolbarsManager. is it possible to use the infragistics tool editors to add tools and menus to MyControl. is there an attribute i need to add the the code?
Hello Steve,
I have been investigating into this behavior with my colleagues, and by the "Infragistics tool editors," I am assuming you are referring to the designer in Visual Studio. If so, this is not currently supported.
This is mainly due to something we did because Visual Studio does not handle visual inheritance very well between things like collections for controls, and your Forms/Controls designer files may end up corrupted if you attempt to do this. Being that the UltraToolbarsManager has a collection of toolbars and then a collection of tools, we took steps to disallow the modification of a toolbar that is defined on a base control from the derived one.
If you need to continue with the visual control inheritance in this case, I would highly recommend modification of the UltraToolbarsManager programmatically by adding your tools and toolbars in code-behind by adding to the Toolbars and Tools collection of the manager.
Please let me know if you have any other questions or concerns on this matter.