[]
Gets or sets the DataTemplate used to display each item.
public DataTemplate ItemTemplate { get; set; }
Public Property ItemTemplate As DataTemplate
Type | Description |
---|---|
DataTemplate | The template that specifies the visualization of the data objects. The default is null. |
ItemTemplate property is only valid when UseMultipleColumn is tree
.
You can use the ItemTemplate property to specify the visual representation of your data.
ItemTemplate is particularly useful when you bind the ItemsSource to data.
You use a DataTemplate to define the appearance of your data objects.
The content of your DataTemplate becomes the visual structure of your data objects.
If you do not set the ItemTemplate, the GcComboBox displays the string representation of the objects in a collection.