SplitButton的双色带项目

时间:2010-03-10 12:42:02

标签: ms-office ribbon

我开发了MS Office加载项,它以下列方式扩展功能区:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" loadImage="GetImage" onLoad="OnRibbonLoad">
 <ribbon>
  <tabs>
   <tab idMso="TabHome">
    <group id="MyAppGroup" label="MyApp">
      <splitButton id="SaveSplitButton" size="large" getEnabled="GetSaveButtonEnabled">
        <menu id="SaveMenu" label="Save" itemSize="normal">
          <button id="SaveMenuButton" image="save.png" label="Save to MyApp" onAction="SaveCommand" screentip="Saves the document" />
          <button id="SaveAsMenuButton" label="Save to MyApp As" onAction="SaveAsCommand" screentip="Saves the document under a new name" getEnabled="GetSaveAsButtonEnabled"/>
        </menu>
      </splitButton>
    </group>
  </tab>
</tabs>

当我转到文件&gt;选项&gt;自定义功能区(在任何Office应用程序中)我希望在“主页”选项卡中看到“MyApp”组,其中一个“保存”菜单中只有一个“保存到MyApp”和一个“保存到MyApp As”子项。但我在“保存”菜单下的“保存到MyApp”项目加倍

我知道如果我将“SaveMenuButton”从菜单右侧移动到splitButton中,那么我将摆脱加倍但我需要在菜单中选择这两个选项。

专家!请帮忙!

0 个答案:

没有答案