In an Excel 2010 Addin we programmatically populate a multi-level RibbonMenu with items from a database. However, it seems impossible to display a RibbonMenu having more than five levels. (Some) Clients get a runtime exception stating that a maximum of only 5 nest levels is supported (verbatim: "Maximal 5 geschachtelte Menüs sind zulässig."). After dismissing the dialog window, the menu shows and is functional, but any menu items deeper than five levels are missing and some items on levels <= 5 are disabled (e.g. RibbonMenus missing their level-5-RibbonButtons).
It doesn't matter whether the menu is created in code (using C#) or declaratively (XML).
- Why is there a nesting limit? Is it documented somewhere?
- Is there anything we can do to override this limit? The figure '5' in the message looks suspicious, like there is some magic int value to be set somewhere...
- Are there any other controls that can be used to display a multi-level nested menu inside an Excel ribbon?
Thanks and best regards,
Thomas