<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<FunctionFile resid="functionFile" />
<ExtensionPoint xsi:type="MessageComposeCommandSurface">
<OfficeTab id="TabDefault2">
<Group id="msgWriteGroup">
<Label resid="groupLabel" />
<Control xsi:type="Button" id="msgWriteOpenPaneButton">
<Label resid="paneReadButtonLabel" />
<Supertip>
<Title resid="paneReadSuperTipTitle" />
<Description resid="paneReadSuperTipDescription" />
</Supertip>
<Icon>
<bt:Image size="16" resid="icon16" />
<bt:Image size="32" resid="icon32" />
<bt:Image size="80" resid="icon80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="messageReadTaskPaneUrl" />
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="icon16" DefaultValue="https://localhost:4200/assets/images/icon-32.png"/>
<bt:Image id="icon32" DefaultValue="https://localhost:4200/assets/images/icon-32.png"/>
<bt:Image id="icon80" DefaultValue="https://localhost:4200/assets/images/icon-32.png"/>
</bt:Images>
<bt:Urls>
<bt:Url id="functionFile" DefaultValue="https://localhost:44383/"/>
<bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://localhost:44383"/>
</bt:Urls>
<bt:ShortStrings>
<bt:String id="customTabLabel" DefaultValue="My Add-in Tab"/>
</bt:ShortStrings>
</Resources>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<FunctionFile resid="residUILessFunctionFileUrl" />
<ExtensionPoint xsi:type="Events">
<Event Type="ItemSend" FunctionExecution="synchronous" FunctionName="validateBody" />
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Urls>
<bt:Url id="residUILessFunctionFileUrl" DefaultValue="https://localhost:4200/on-send" ></bt:Url>
</bt:Urls>
</Resources>
</VersionOverrides>嗨。上面的代码是我的Outlook加载项清单。
我在邮件撰写窗口顶部的功能区按钮上看到了加载项按钮,并且我还想使用On-Send事件。
所以我合并了清单,onsend事件起作用了,但是按钮没有出现在compose窗口中。
我不能一起使用and吗?
发布于 2021-05-01 03:24:10
功能区按钮和OnSend事件都需要是版本覆盖1.1。1.1部分将在适用时完全覆盖1.0部分。
您可能希望将Ribbon Button放在1.1和1.0中,并将OnSend事件放在1.1部分中。
https://stackoverflow.com/questions/67329400
复制相似问题