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

TabView.ItemsSource Property

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

Namespace: DevExpress.XamarinForms.Navigation

Assembly: DevExpress.XamarinForms.Navigation.dll

Declaration

public IEnumerable ItemsSource { get; set; }

Property Value

Type Description
IEnumerable

A collection used to generate the Tab View’s tab items.

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