2017-05-05 6 views
1

Dans un group d'un custom tab d'un Ribon XML d'une coutume VSTO MOT AddIn, je dois afficher un editBoxhorizontally en ligne aligné avec un checkBox. Comment puis-je y parvenir? L'écran suivant affiche les deux commandes alignées verticalement l'une après l'autre:Comment afficher deux contrôles alignés horizontalement dans un XML de ruban personnalisé

<tab idMso="TabAddIns"> 
    <group id="ContentGroup" label="Content"> 
     <editBox id="editBoxID" label="Insert Text" 
      screentip="Text" onAction="getText"/> 
     <checkBox id="checkBoxID" label="Enable" /> 
    </group> 
</tab> 

Répondre

2

Utilisez une boîte, avec une boîte horizontale.

<group id="groupid" label="Content"> 
    <box id="ContentGroup" boxStyle="horizontal"> 
    <editBox id="editBoxID" label="Insert Text" /> 
    <checkBox id="checkBoxID" label="Enable" /> 
    </box> 
</group> 

Result of this ribbon XML