Table of Contents
SelectionBoxItemStringFormat Property

Gets a composite string that specifies how to format the selected item in the selection box if it is displayed as a string.

Syntax
 public String SelectionBoxItemStringFormat { get; }
Remarks

This property returns the format string that is used to format the current selected item. The property value is usually derived from another property value. For example, for the following ComboBox:

XML
<eo:ComboBox xmlns:sys="clr-namespace:System;assembly=mscorlib"
    ItemStringFormat="MMMM d, yyyy">
    <sys:DateTime>2004/3/4</sys:DateTime>
    <sys:DateTime>2004/8/9</sys:DateTime>
    <sys:DateTime>2005/10/14</sys:DateTime>
    <sys:DateTime>2005/4/8</sys:DateTime>
</eo:ComboBox>

ItemStringFormat "MMMM d, yyyy" is used to format each item and the selected item. In this case SelectionBoxItemStringFormat returns "MMMM d, yyyy".

See Also