2017-12-18 4 views
1

Meine Add-Ins enthalten mehrere Steuerelemente. Ich möchte Steuerelemente in mehreren Gruppen anstatt in nur einer Gruppe zuordnen.Wie zeigen Sie mehrere Gruppen in Add-Ins?

Ich habe mehrere Gruppen erstellt, funktioniert aber nicht.

Wie kann ich es tun?

Api Reference

  <Group id="Contoso.Tab1.Group1"> 
      <!--Label for your group. resid must point to a ShortString resource --> 
      <Label resid="Contoso.Tab1.GroupLabel" /> 
      <Icon> 
       <!-- Sample Todo: Each size needs its own icon resource or it will look distorted when resized --> 
       <!--Icons. Required sizes 16,31,80, optional 20, 24, 40, 48, 64. Strongly recommended to provide all sizes for great UX --> 
       <!--Use PNG icons and remember that all URLs on the resources section must use HTTPS --> 
       <bt:Image size="16" resid="Contoso.TaskpaneButton.Icon" /> 
       <bt:Image size="32" resid="Contoso.TaskpaneButton.Icon" /> 
       <bt:Image size="80" resid="Contoso.TaskpaneButton.Icon" /> 
      </Icon> 

      <!--Control. It can be of type "Button" or "Menu" --> 
      <Control xsi:type="Button" id="Contoso.FunctionButton"> 
       <!--Label for your button. resid must point to a ShortString resource --> 
       <Label resid="Contoso.FunctionButton.Label" /> 
       <Supertip> 
       <!--ToolTip title. resid must point to a ShortString resource --> 
       <Title resid="Contoso.FunctionButton.Label" /> 
       <!--ToolTip description. resid must point to a LongString resource --> 
       <Description resid="Contoso.FunctionButton.Tooltip" /> 
       </Supertip> 
       <Icon> 
       <bt:Image size="16" resid="Contoso.FunctionButton.Icon" /> 
       <bt:Image size="32" resid="Contoso.FunctionButton.Icon" /> 
       <bt:Image size="80" resid="Contoso.FunctionButton.Icon" /> 
       </Icon> 
       <!--This is what happens when the command is triggered (E.g. click on the Ribbon). Supported actions are ExecuteFuncion or ShowTaskpane--> 
       <!--Look at the FunctionFile.html page for reference on how to implement the function --> 
       <Action xsi:type="ExecuteFunction"> 
       <!--Name of the function to call. This function needs to exist in the global DOM namespace of the function file--> 
       <FunctionName>writeText</FunctionName> 
       </Action> 
      </Control> 

      <!-- ....... --> 
      </Group> 
+0

Sie müssen mehr bieten, was genau nicht funktioniert, außer zu sagen, dass es nicht funktioniert. Stellen Sie eine vollständige Manifestdatei bereit, die nicht (...) ist. In diesen Punkten ist ein Fehler aufgetreten. Der übliche Fehler ist normalerweise während des Kopierens und vergessen, die IDs der Elemente zu ändern. Sie müssen einzigartig sein. –

Antwort

0

es ist derzeit nur möglich, mehrere Gruppen zu erstellen, wenn Sie Ihre eigene neue Add-in Tab verwenden. Sie können auf einer vorhandenen Registerkarte nicht mehrere Gruppen erstellen.