Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Merging sevral UltraToolbarsManager
posted

I do not want all the tabs of the ribbon to be handled in the same class, this would lead to one file with thousands of line, making it a hell to debug and upgrade.

So, I want to handle each tab of a ribbon in a diffrent class.

To do that, I use sevral UserControl with one UltraToolbarsManager each. And each ribbon containing only one tab.

Then I want at load time to be able to merge the diffent instances of UltraToolbarsManager  to be merged with the main one.

 

I am aware that this can be done with MDI form but
- as far as I know, when the mdiChildForm is not selected, its tabs disapear. It can be considered  as logical but it is not what I would expect.
- and I do not want to have to display some childForm when it is only its ribbon I want displayed.

 

I have evantually managed to do it by cascading toolbars :

child2ToolbarsManager.MdiParentManager = child1ToolbarsManager;
child1ToolbarsManager.MdiParentManager = mainToolbarsManager; 
mainToolbarsManager.RefreshMerge(); 

 

but is there an official way ?