customUI.xml 与功能区布局不匹配
Missmatch between customUI.xml and ribbon layout
这是我的个人 customUI XML 文件中的代码。一切似乎都很好,但如果我查看功能区上的布局,最后三个图标的顺序与 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="mso:ObjectSetShapeDefaults" 出现在自定义按钮 (10) 和 (11) 上方。
为什么?我怎样才能让它保持我想要的顺序?是因为自定义按钮吗?他们总是在 mso 按钮后面吗?
非常感谢。
以下属性可用于管理控件的顺序:
insertAfterMso, insertAfterQ, insertBeforeMso, insertBeforeQ
在 MSDN 中的以下系列文章中阅读有关 Fluent UI(又名功能区 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)
这是我的个人 customUI XML 文件中的代码。一切似乎都很好,但如果我查看功能区上的布局,最后三个图标的顺序与 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="mso:ObjectSetShapeDefaults" 出现在自定义按钮 (10) 和 (11) 上方。
为什么?我怎样才能让它保持我想要的顺序?是因为自定义按钮吗?他们总是在 mso 按钮后面吗?
非常感谢。
以下属性可用于管理控件的顺序:
insertAfterMso, insertAfterQ, insertBeforeMso, insertBeforeQ
在 MSDN 中的以下系列文章中阅读有关 Fluent UI(又名功能区 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)