而且,这里是如何创建一个标签与一些组:
<Ribbon.Tabs> . <Tab CommandName="Tab1" >
<Tab.ScalingPolicy>
<ScalingPolicy>
<ScalingPolicy.IdealSizes>
<Scale Group="g1" Size="Large" />
<Scale Group="g2" Size="Large" />
<Scale Group="g3" Size="Large" />
<Scale Group="g4" Size="Large" />
</ScalingPolicy.IdealSizes>
</ScalingPolicy>
</Tab.ScalingPolicy>
<Group CommandName="g1" SizeDefinition="OneButton">
<Button CommandName="cmdNew" />
</Group>
<Group CommandName="g2" SizeDefinition="ThreeButtons">
<Button CommandName="cmdNew" />
<Button CommandName="cmdOpen" />
<Button CommandName="cmdSave" />
<DialogLauncher CommandName="cmdSave" />
</Group>
<Group CommandName="g3" SizeDefinition="OneFontControl">
<FontControl CommandName = "Font1" FontType = "RichFont" />
</Group>
<Group CommandName="g4">
<DropDownColorPicker CommandName="cpick1" ChipSize = "Large" />
</Group>
</Tab>
标签: