Binding to Data
DXTabControl can display data from a bound data source. The tab control can be bound to any object that implements the IEnumerable interface or its descendant (e.g. IList, ICollection). To bind DXTabControl to a data source, use its DXTabControl.ItemsSource property.
When a tab control is bound to a data source, its DXTabControl.Items collection is filled with data items. The tab control applies the DXTabControl.ItemTemplate and DXTabControl.ItemHeaderTemplate templates to each element within the collection to present a tab item's content and header.
Use the DXTabControl.GetTabItem method to obtain a tab item by its index.
#Example: How to bind DXTabControl to data
The following example demonstrates how to bind a tab control to data.
In this example, a tab control is bound to an IList collection, which contains data items. The visual presentation of tab items and headers is specified via the DXTabControl.ItemTemplate and DXTabControl.ItemHeaderTemplate templates respectively. The datasource is assigned to the DXTabControl.ItemsSource property to bind the control to data.