【发布时间】:2019-05-24 10:13:56
【问题描述】:
当 Outlook Explorer 或 Inspector 窗口的宽度减小时,功能区会发生变化。在我的 VSTO 插件中,我可以影响 Office 功能区的缩放方式吗?
在某个宽度处,选项卡会变成带有小箭头的单个图标,单击该图标时,选项卡的按钮/元素会出现在弹出窗口中。在这种情况下如何设置出现的图标?
下面是我当前用于标签的 XML。
我还添加了一张当窗口变窄时我的功能区看起来如何的图片。
我无法从 Microsoft 找到新的 XML 标记,这真的是最新版本吗[MS-CUSTOMUI2]: Custom UI XML Markup Version 2 Specification
<tabs>
<!-- Creates a new App Tab on the inspector toolbar-->
<tab idMso="TabReadMessage">
<group id="AppGroup" label="App">
<!-- A toggle or ON/OFF button to Encrypt or Decrypt an email and show the current encryption -->
<toggleButton id="insDecryptButton"
getLabel="insDecryptButton_getLabel"
size="large"
onAction="insDecryptButton_ButtonClick"
getImage="insDecryptButton_getImage"
getSupertip="insDecryptButton_getSupertip"
getScreentip="insDecryptButton_getScreentip"
getPressed="insDecryptButton_getPressed"
getVisible="insDecryptButton_getVisible"/>
<!-- A Button with drop down that shows all the File Numbers in the Email. If there are no file numbers this will not appear. -->
<dynamicMenu id="insMenu"
getLabel="insMenu_getLabel"
size="large"
getImage="insMenu_getImage"
getVisible="insMenu_getVisible"
getSupertip="insMenu_getSupertip"
getScreentip="insMenu_getScreentip"
getContent="insMenu_getContent"/>
<!-- Button to upload the email or attachments to IPAS -->
<dynamicMenu id="upMenu"
getLabel="upMenu_getLabel"
size="large"
getImage="upMenu_getImage"
getVisible="upMenu_getVisible"
getSupertip="upMenu_getSupertip"
getScreentip="upMenu_getScreentip"
getContent="upMenu_getContent"/>
</group>
</tab>
【问题讨论】:
-
您也可以使用
getImage将图像分配给组。 -
谢谢。我在选项卡中搜索某些内容并忽略了 group 元素。如果您愿意,请将您的评论作为答案。
-
别担心,伙计。很高兴我能帮上忙。如果有帮助,我在 GitHub 中有一堆 VSTO 插件示例。 github.com/aduguid