次の方法でリボンを拡張する 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>
[ファイル] > [オプション] > [リボンのカスタマイズ] (任意の Office アプリケーション) に移動すると、[ホーム] タブに [MyApp] グループが表示され、[保存] メニューには [MyApp に保存] が 1 つと [名前を付けて MyApp に保存] が 1 つだけ表示されます。その中のサブアイテム。しかし、代わりに、「保存」メニューの下に「 MyAppに保存」項目が2倍になります。
「SaveMenuButton」をメニューから splitButton に移動すると、その重複が解消されることはわかっていますが、メニューにはこれら 2 つのオプションが必要です。
専門家!助けてください!