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 |
---|---|
| 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. |
See Also