是否有任何方法可以使用PrimaryCommandSurface显示在outlook外接程序开发的顶部丝带上的外接程序,如果是,请帮助更新的有效manifest.xml。
,如果没有其他方法的帮助,如何创建outlook顶级带命令插件
<ExtensionPoint xsi:type="PrimaryCommandSurface">
<CustomTab id="Contoso Tab">
<!-- If you want to use a default tab that comes with Office, remove the above CustomTab element, and then uncomment the following OfficeTab element -->
<!-- <OfficeTab id="TabData"> -->
<Label resid="residLabel4" />
<Group id="Group1Id12">
<Label resid="residLabel4" />
<Icon>
<bt:Image size="16" resid="icon1_32x32" />
<bt:Image size="32" resid="icon1_32x32" />
<bt:Image size="80" resid="icon1_32x32" />
</Icon>
<Tooltip resid="residToolTip" />
<Control xsi:type="Button" id="Button1Id1">
<!-- information about the control -->
</Control>
<!-- other controls, as needed -->
</Group>
</CustomTab>
</ExtensionPoint>
<ExtensionPoint xsi:type="ContextMenu">
<OfficeMenu id="ContextMenuCell">
<Control xsi:type="Menu" id="ContextMenu2">
<!-- information about the control -->
</Control>
<!-- other controls, as needed -->
</OfficeMenu>
</ExtensionPoint>发布于 2021-04-24 15:15:31
PrimaryCommandSurface代表办公室里的丝带。在Outlook中,我们处理读取或组合项,因此我们应该对接收到的项使用MessageReadCommandSurface,例如:
<ExtensionPoint xsi:type="MessageReadCommandSurface">
<OfficeTab id="TabDefault">
<-- OfficeTab Definition -->
</OfficeTab>
</ExtensionPoint>TabDefault是Outlook中内置选项卡的idMso值。
此外,您还可以通过以下方式将控件放置到自定义选项卡中:
<ExtensionPoint xsi:type="MessageReadCommandSurface">
<CustomTab id="TabCustom1">
<-- CustomTab Definition -->
</CustomTab>
</ExtensionPoint>如果需要为Outlook中的组合项显示带状UI,则需要使用MessageComposeCommandSurface扩展点,该扩展点使用邮件撰写表单在带状上放置按钮以进行外接程序:
<ExtensionPoint xsi:type="MessageComposeCommandSurface">
<OfficeTab id="TabDefault">
<-- OfficeTab Definition -->
</OfficeTab>
</ExtensionPoint>并将控件放置到自定义选项卡中:
<ExtensionPoint xsi:type="MessageComposeCommandSurface">
<CustomTab id="TabCustom1">
<-- CustomTab Definition -->
</CustomTab>
</ExtensionPoint>有关更多信息,请参见ExtensionPoint元素。
https://stackoverflow.com/questions/67232734
复制相似问题