表示一个 组 控件,该控件充当一组元素的容器。
使用情况
<Group
SizeDefinition = "xs:string"
ApplicationModes = "xs:string"
CommandName = "xs:positiveInteger or xs:string">
child elements
</Group>
特性
| 属性 | 类型 | 必选 | 说明 |
|---|---|---|---|
|
ApplicationModes |
xs:string |
否 |
空格有效,将被忽略。 最大长度:250 个字符。 |
| CommandName |
xs:positiveInteger 或 xs:string |
否 |
将 元素与 命令相关联。 该值在功能区 XML 文档中必须是唯一的。 最大长度:100 个字符。 |
|
SizeDefinition |
xs:string |
否 |
指定后, SizeDefinition 的值将限制为功能区框架定义的 布局模板 之一。 最大长度是无限制的。 |
子元素
| 元素 | 说明 |
|---|---|
|
Button |
可能发生一次或多次 |
|
CheckBox |
可能发生一次或多次 |
|
ComboBox |
可能发生一次或多次 |
|
ControlGroup |
可能发生一次或多次 |
|
DropDownButton |
可能发生一次或多次 |
|
DropDownColorPicker |
可能发生一次或多次 |
|
DropDownGallery |
可能发生一次或多次 |
|
FontControl |
最多可能发生一次 |
|
InRibbonGallery |
可能发生一次或多次 |
|
SizeDefinition |
最多可能发生一次 |
|
Spinner |
可能发生一次或多次 |
|
SplitButton |
可能发生一次或多次 |
|
SplitButtonGallery |
可能发生一次或多次 |
|
ToggleButton |
可能发生一次或多次 |
父元素
| 元素 |
|---|
|
Tab |
备注
可选。
对于每个 Tab 元素,可能发生一次或多次。
仅当 Group 的子元素对应于为 SizeDefinition 指定的模板时,功能区标记才有效。
示例
下面的代码示例演示了如何在 组中使用自定义模板。
<Group CommandName="cmdCustomGroup1" SizeDefinition="CustomTemplate">
<Button CommandName="cmdCommand1" />
</Group>
元素信息
- 支持的最低系统:Windows 7
- 可以为空:否