drawControl

指定在仅显示属性时要使用的控件。 每个 displayInfo 元素应只有一个 drawControl 元素。

如果有多个元素,则使用最后一个元素。 如果未提供 drawControl 元素,则默认属性设置将应用于属性说明。

此形式的控件不允许属性编辑。

语法

<!-- drawControl -->
<xs:element name="drawControl"  minOccurs="0" maxOccurs="1">
    <xs:complexType>
        <xs:attribute name="control">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="Default"/>
                    <xs:enumeration value="MultiLineText"/>
                    <xs:enumeration value="MultiValueText"/>
                    <xs:enumeration value="PercentBar"/>
                    <xs:enumeration value="ProgressBar"/>
                    <xs:enumeration value="Rating"/>
                    <xs:enumeration value="StaticText"/>
                    <xs:enumeration value="IconList"/>
                    <xs:enumeration value="BooleanCheckMark"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
    </xs:complexType>
</xs:element>

元素信息

Parent 元素 子元素
displayInfo 没有

 

属性

属性 描述
控制 公共。 自选。 默认值为“Default”。 以下是有效值。
价值 意义
违约 违约。 根据 <typeInfo type=“”> 属性使用默认控件。 默认类型为“String”(多值),默认控件为“MultiValueText”。 任何其他类型都会导致使用“StaticText”控件。
MultiLineText 使用多行文本控件。
MultiValueText 使用多值文本控件。
PercentBar 使用百分比条形控件。
ProgressBar 使用进度栏控件。
额定值 使用 5 星级分级控件。
StaticText 使用 IPropertyDescription::FormatForDisplay 显示属性值。
IconList Windows 7 及更高版本。 图标的枚举。
BooleanCheckMark Windows 7 及更高版本。