Thanks for posting your question in the Microsoft Q&A forum.
However, the OfficeTab
element is not directly used within the PrimaryCommandSurface
. Instead, you can use the Group
element to define different command groups for each tab.
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" ...>
<AddIn ...>
...
<Extensions>
<ExtensionPoint xsi:type="PrimaryCommandSurface">
<!-- Command Groups for TabHome -->
<OfficeTab id="TabHome">
<Group id="MyGroupHome">
<Label resid="MyGroup.Home.Label" />
<Icon>
<bt:Image size="16" resid="MyGroup.Home.Icon" />
<bt:Image size="32" resid="MyGroup.Home.Icon" />
<bt:Image size="80" resid="MyGroup.Home.Icon" />
</Icon>
<Control xsi:type="Button" id="MyButtonHome">
...
</Control>
</Group>
</OfficeTab>
<!-- Command Groups for TabDesign -->
<OfficeTab id="TabDesign">
<Group id="MyGroupDesign">
<Label resid="MyGroup.Design.Label" />
<Icon>
<bt:Image size="16" resid="MyGroup.Design.Icon" />
<bt:Image size="32" resid="MyGroup.Design.Icon" />
<bt:Image size="80" resid="MyGroup.Design.Icon" />
</Icon>
<Control xsi:type="Button" id="MyButtonDesign">
...
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</Extensions>
</AddIn>
</OfficeApp>
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **