drawControl

Specifies what control to use when simply displaying the property. There should be only one drawControl element for each displayInfo element.

If there are multiple elements, the last one is used. If no drawControl element is provided, then the default attribute settings are applied to the property description.

This form of the control does not allow for property editing.

Syntax

<!-- 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>

Element Information

Parent Element Child Elements
displayInfo None

 

Attributes

Attribute Description
control Public. Optional. Default is "Default". The following are valid values.
Value Meaning
Default Default. Uses the default control, based upon the <typeInfo type=""> attribute. The default type is "String" (multi-value) and the default control is "MultiValueText". Any other type results in using the "StaticText" control.
MultiLineText Uses the multi-line text control.
MultiValueText Uses the multi-value text control.
PercentBar Uses the percent bar control.
ProgressBar Uses the progress bar control.
Rating Uses the 5-star rating control.
StaticText Uses IPropertyDescription::FormatForDisplay to display the property value.
IconList Windows 7 and later. An enumeration of icons.
BooleanCheckMark Windows 7 and later.