Item Templates

ComponentOne ComboBox for WPF's combo box control is an ItemsControls that serves as a container for other elements. As such, the control includes templates to customize items places within the combo box. These templates include an ItemTemplate, an ItemsPanel, and an ItemContainerStyle template. You use the ItemTemplateto specify the visualization of the data objects,  the ItemsPanelto define the panel that controls the layout of items, and the ItemStyleContainer to set the style of all container items.

Accessing Templates

You can access these templates in Microsoft Expression Blend by selecting the C1ComboBox control and, in the menu, selecting Edit Additional Templates. Choose Edit Generated Items (ItemTemplate), Edit Layout of Items (ItemsPanel), or Edit Generated Item Container (ItemStyleContainer) and select Create Empty to create a new blank template or Edit a Copy.

A dialog box will appear allowing you to name the template and determine where to define the template.

 


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.