简体   繁体   English

使用自定义ui xml将按钮添加到Outlook消息选项卡

[英]add button to outlook message tab using custom ui xml

I am able to add button to file menu backstage view, but I also want to add it to the message tab or show my custom button on the next row of the toolbar. 我可以将按钮添加到文件菜单后台视图,但是我也想将其添加到消息选项卡,或在工具栏的下一行显示我的自定义按钮。 Is this possible, or are there any betters ways to approach this problem? 这是否可能,或者有没有更好的方法来解决此问题?

This is the xml code and it worked for me. 这是xml代码,对我有用。 Hope it helps. 希望能帮助到你。

<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
  <ribbon>
    <tabs>
      <tab idMso="TabReadMessage">
        <group id="GroupNew" label="My Group" insertBeforeMso="GroupClipboard">
          <button id="buttonid" size="large" label="my button" onAction="mybutton_click" imageMso="HappyFace"/>
        </group>
      </tab>
    </tabs>
  </ribbon>
</customUI>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM