Skip to main content
A newer version of this page is available. .

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

TabView.ItemsSource

Gets or sets a collection used to generate the Tab View’s tab items.

TabView.ItemTemplate

Gets or sets the template the Tab View uses to generate tab items’ content from the ItemsSource.

TabView.ItemHeaderTemplate

Gets or sets the template the Tab View uses to generate tab items’ headers from the ItemsSource.

See Also