Hi Sebastien,
The <customUI ...> markup in the .dna file is passed to Excel as-is, and is not processed by Excel-DNA. The best information on the ribbon, and how the handlers work, can be found in the three-part article here:
http://msdn.microsoft.com/en-us/library/aa338202(office.12).aspx Excel-DNA
doesn't do much about the ribbon, apart from helping to load the ExcelRibbon-derived class without needing prior registration or admin access.
About the context menus: it could be that having both the ribbon markup and the Excel-DNA <CommandBars ...>markup in the .dna file does not work. Excel-DNA pick which part to use based on the Excel version, so might ignore
the CommandBars part under Excel 2007+. (Though for Excel 2010+ the context menus can be customized as part of the ribbon xml.)
I'd suggest you try one of these methods for adding the context menu:
* Call ExcelCommandBarUtil.LoadCommandBars(
<commandBar menu='Cell'>
<button caption='New context item' enabled='true'
shortcutText='CTRL+A' onAction="ShowHelloMessage"/>
</commandBar>
</commandBars>");
* Use the object model exposed from ExcelDna.Integration.CustomUI to add the command bar:
var bars = ExcelCommandBarUtil.GetCommandBars();
var contextBar = bars("Cell");
// ... etc adding popup and button elements.
I haven't tried the code, so write back if you get stuck and I'll try to make a working example.
-Govert