0
我正在使用擴展電子郵件撰寫檢查器和Backstage功能區的Outlook加載項。這個問題解釋得很快。 所有檢查員似乎只有一個功能區實例。Outlook功能區XML - 所有檢查人員只有一個實例
當第一個檢查器窗口打開時,OnLoad中定義的回調觸發。 對於所有的後續檢查員而言,它並不是。 由該事實導致我不能有色帶的實例「代碼背後」類每督察和檢查人員都共享相同的屬性像可視性按鈕,啓用/禁用等
怎麼可能有每個檢查員窗口都有一個絲帶的獨立對象?
這是我區XML:
<customUI onLoad="Ribbon_Load" xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon>
<tabs>
<tab idMso="TabNewMailMessage">
<group id="groupSpatium">
<toggleButton id="toggleShare" imageMso="FilePublishAsWebPage" onAction="ToggleShare_Click" description="Click to share files" label="Send" size="large" getEnabled="IsShareEnabled" getPressed="IsShareChecked" />
<toggleButton id="toggleReceive" imageMso="EmailFormCollectionFolder" onAction="ToggleReceive_Click" description="Click to receive files" label="Receive" size="large" getEnabled="IsReceiveEnabled" getPressed="IsReceiveChecked" />
</group>
</tab>
</tabs>
</ribbon>
<backstage>
<tab id="ShareBackstage" label="Noerr Share">
<firstColumn>
<group id="AlwaysPasswordProtectGroup" label="Password protection and access control" helperText ="Set options for password protection of and access to uploaded files.">
<bottomItems>
<checkBox id="AlwaysPasswordProtect" label="Password protect all uploads" getPressed="IsAlwaysPasswordprotectChecked" onAction="AlwaysPasswordprotect_Click"/>
<checkBox id="AlwaysRequireRegistration" label="Require registration for all password protected uploads" getPressed="IsAlwaysRequireRegistrationChecked" onAction="AlwaysRequireRegistration_Click" getEnabled="IsAlwaysPasswordprotectChecked"/>
</bottomItems>
</group>
</firstColumn>
</tab>
</backstage>
</customUI>
感謝任何幫助