TabView.ItemTemplate Property
Gets or sets the template the Tab View uses to generate tab items’ content from the ItemsSource.
Namespace: DevExpress.XamarinForms.Navigation
Assembly: DevExpress.XamarinForms.Navigation.dll
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
DataTemplate | The template the Tab View uses to generate tab items’ content from the ItemsSource. |
Example
The following example demonstrates how to generate tab items from a data source:
Note
Complete example is available on GitHub.
<dxn:TabView Style="{StaticResource coloredTabs}"
ItemTemplate="{StaticResource contentTemplate}"
ItemHeaderTemplate="{StaticResource headerContentTemplate}"
ItemsSource="{Binding CarsByMake}"
SelectedItem="{Binding SelectedGroup, Mode=TwoWay}"/>
The table below lists properties the markup above utilizes:
Property | Description |
---|---|
Gets or sets a collection used to generate the Tab View’s tab items. | |
| Gets or sets the template the Tab View uses to generate tab items’ content from the ItemsSource. |
Gets or sets the template the Tab View uses to generate tab items’ headers from the ItemsSource. |