[]
Specifies a single list item within the content control. Each list item shall be displayed in the list displayed for the content control (if a user interface is present).
public class DropDownItem
Initializes a new instance of the DropDownItem class.
public DropDownItem(string value, string text = null)
value
stringThe value for this list item.
text
stringThe text to display for this list item.
Gets or sets the text to display for this list item. This value shall be used as follows: If the content control is mapped to a custom XML element, the value in that custom XML element shall be mapped to the Value property, and the Text property value shall be displayed. If the corresponding item is selected via a user interface, this value shall be stored in the control content.
public string Text { get; set; }
Gets or sets the value for this list item. This value shall be used as follows: If the content control is mapped to a custom XML element, the value in that custom XML element shall be mapped to the Value property, and the Text property value shall be displayed.
public string Value { get; set; }