customUI.xml和功能区布局之间不匹配

时间:2015-06-25 10:05:38

标签: xml user-interface powerpoint ribbon

这是我个人customUI XML文件中的代码。一切似乎都很好但是如果我看一下功能区上的布局,最后三个favicons的顺序与XML文件中的顺序不同。

<mso:group id="mso_c6.2C0C7C46" autoScale="false">
(1)     <mso:control idQ="mso:ObjectsAlignLeftSmart" visible="true" showImage="true" showLabel="false" size="normal"/>
(2)     <mso:control idQ="mso:ObjectsAlignTopSmart" visible="true" showImage="true" showLabel="false" size="normal"/>
(3)     <mso:control idQ="mso:ObjectsAlignRelativeToContainerSmart" imageMso="FileNew" visible="true" showImage="true" showLabel="false" size="normal"/>
(4)     <mso:control idQ="mso:ObjectsAlignRightSmart" visible="true" showImage="true" showLabel="false" size="normal"/>
(5)     <mso:control idQ="mso:ObjectsAlignBottomSmart" visible="true" showImage="true" showLabel="false" size="normal"/>
(6)     <mso:control idQ="mso:ObjectsAlignSelectedSmart" imageMso="ShapesDuplicate" visible="true" showImage="true" showLabel="false" size="normal"/>
(7)     <mso:control idQ="mso:ObjectsAlignCenterHorizontalSmart" visible="true" showImage="true" showLabel="false" size="normal"/>
(8)     <mso:control idQ="mso:ObjectsAlignMiddleVerticalSmart" visible="true" showImage="true" showLabel="false" size="normal"/>
(9)     <mso:control idQ="mso:ShapeRectangle" visible="true" showImage="true" showLabel="false" size="normal"/>
(10)    <mso:control idQ="x1:Custombutton303" visible="true" showImage="true" showLabel="false" size="normal"/>
(11)    <mso:control idQ="x1:Custombutton304" visible="true" showImage="true" showLabel="false" size="normal"/>
(12)    <mso:control idQ="mso:ObjectSetShapeDefaults" imageMso="DiagramTargetInsertClassic" visible="true" showImage="true" showLabel="false" size="normal"/>
</mso:group>

我希望它在功能区中看起来像这样

(1)(4)(7)(10)

(2)(5)(8)(11)

(3)(6)(9)(12)

但事实上它看起来像这样:

(1)(4)(7)(12)

(2)(5)(8)(10)

(3)(6)(9)(11)  

(12)idQ =&#34; mso:ObjectSetShapeDefaults&#34;出现在Custombuttons(10)&amp; (11)。

为什么呢?我怎样才能保持我想要的订单?是因为自定义按钮?他们总是落后于按钮吗?

非常感谢。

1 个答案:

答案 0 :(得分:1)

以下属性可用于管理控件的顺序:

insertAfterMso,insertAfterQ,insertBeforeMso,insertBeforeQ

在MSDN中的以下系列文章中阅读有关Fluent UI(aka Ribbon UI)的更多信息:

Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)

Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)

Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)