You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何让Outlook加载项在未选中邮件预览时仍可见

Outlook加载项无邮件选中时保持可见的配置方案

你的问题出在<SupportsNoItemContext>的放置位置错误,这个元素不能嵌套在<Action xsi:type="ShowTaskpane">标签内,正确的配置方式如下:

  • 首先确保你的manifest使用v1.1及以上版本,低版本不支持无上下文场景的配置。
  • 将<SupportsNoItemContext>true</SupportsNoItemContext>直接放在<Control>标签内部,而非Action标签里。

以下是符合要求的配置示例:

<ExtensionPoint xsi:type="MessageReadCommandSurface">
  <OfficeTab id="TabDefault">
    <Group id="msgReadGroup">
      <Label resid="GroupLabel"/>
      <Control xsi:type="Button" id="msgReadOpenPaneButton">
        <Label resid="TaskpaneButtonLabel"/>
        <Supertip>
          <Title resid="TaskpaneButtonTitle"/>
          <Description resid="TaskpaneButtonDesc"/>
        </Supertip>
        <Icon>
          <bt:Image size="16" resid="Icon.16x16"/>
          <bt:Image size="32" resid="Icon.32x32"/>
          <bt:Image size="80" resid="Icon.80x80"/>
        </Icon>
        <!-- 正确放置位置:Control标签内 -->
        <SupportsNoItemContext>true</SupportsNoItemContext>
        <Action xsi:type="ShowTaskpane">
          <SourceLocation resid="TaskpaneUrl"/>
        </Action>
      </Control>
    </Group>
  </OfficeTab>
</ExtensionPoint>

配置完成后,重新验证并部署manifest,加载项就能像"Read Aloud"一样,在未选中任何邮件预览时也保持可见可点击。

内容的提问来源于stack exchange,提问作者BerthetQuentin

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.30 16:23:15