Are you really using the wrong tab, or rather, you are not using the correct ContextualTab
Adding addin to contextualTab is not possible, as far as I know.
What can I offer you to convert your current ribbon (designer) into the Ribbon UML XML interface, correctly connect the XML and Ribbon class to the existing code.
<customUI onLoad="Ribbon_Load" xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <ribbon> <contextualTabs> <tabSet idMso="TabSetAppointment"> <tab idMso="TabAppointment"> <group id="group1" label="Normal Meeting Group" /> </tab> </tabSet> <tabSet idMso="TabSetReccurringAppointment"> <tab idMso="TabRecurringAppointment"> <group id="group2" label="Recurring Meeting Group" /> </tab> </tabSet> </contextualTabs> </ribbon> </customUI>
This will cause your group / controls to appear in the desired (contextual) tab.
PS: do not forget to include the XML element of the tape by overriding the CreateRibbonExtensibilityObject () method and create callbacks (aka event handler from your designer)
Hope this helps :)
source share