2016-04-07 9 views
1

Ich versuche, eine Add-In-Befehlsschaltfläche zu erstellen, um nur dann sichtbar zu sein, wenn Anhänge vorhanden sind. Ist es möglich?Eine Add-In-Befehlsschaltfläche nur anzeigen, wenn Anhänge vorhanden sind

ich erwartet hatte, ich könnte eine „Regel“ Knoten zum „Control“ Knoten hinzufügen, aber es kann nicht getan werden:

<Control xsi:type="Button" id="hButton2"> 
    <Label resid="hButton2Label" /> 
    <Supertip> 
     <Title resid="hButton2SupertipT" /> 
     <Description resid="hButton2SupertipD" /> 
    </Supertip> 
    <Icon> 
     <bt:Image size="16" resid="h-button2-icon-16" /> 
     <bt:Image size="32" resid="h-button2-icon-32" /> 
     <bt:Image size="80" resid="h-button2-icon-80" /> 
    </Icon> 
    <Action xsi:type="ShowTaskpane"> 
     <SourceLocation resid="hSourceLocation2"/> 
    </Action> 
    <Rule xsi:type="ItemHasAttachment" /> <-------------------- won't work 
</Control> 

Antwort