Hello, I'm using a User Control that beyond other components it contains an Ultra Toobar Manager. The Toolbar Manager contains some tools. I inherit this user control in order to built on top of it. Is there any way to add a new tool in the Toolbar Manager in the inherited user control?
thanks
???
You can inherit a form that has a toolbar and tools and add, subtract, and alter tools on that toolbar in an inherited form created with visual inheritance as long as you change the default private scope of the ToolbarManager and its associated declarations from private to protected. This will allow them to be visible in the derived form. However, you will only be able to do this in code since the Visual Studio.Net designer's serialization model is fairly limited and will not allow this. This limitation is a Microsoft issue and is not specific to Infragistics tools; It is a limitation of the VS.Net designer.
Alternatively you can add a new toolbar (in the subcontrol) and add the tools to this toolbar
You do not have to do this in code. You can do it at design-time by changing the Modifiers property of the UltraToolbarsManager to Protected.
At design-time, you cannot modify or remove existing toolbars or tools on inherited forms because they are not declared as member variables. You can only add new toolbars and tools in inherited forms. You can submit a feature request for the ability to modify and remove toolbars and tools: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.
Did you actually try it? I did. The tools in the inherited toolbar cannot be changed (and new tools cannot be added to this toolbar)in the designer