Skip to main content

TabView.Items Property

Gets or sets the list of tab items the Tab View displays.

Namespace: DevExpress.XamarinForms.Navigation

Assembly: DevExpress.XamarinForms.Navigation.dll

NuGet Package: DevExpress.XamarinForms.Navigation

Declaration

public IList<TabViewItem> Items { get; }

Property Value

Type Description
IList<TabViewItem>

The list of tab items the Tab View displays.

Example

This example demonstrates how to use the Items property to manually populate a TabView instance with items.

<dxn:TabView Style="{StaticResource coloredTabView}">
    <dxn:TabViewItem HeaderText="EXPLORE"
                 HeaderIcon="ic_explore.png">
        <dxn:TabViewItem.Content>
            <Label Text="New Trip Targets Here"
                   VerticalTextAlignment="Center"
                   HorizontalTextAlignment="Center"/>
        </dxn:TabViewItem.Content>
    </dxn:TabViewItem>
        <dxn:TabViewItem HeaderText="FLIGHTS"
                     HeaderIcon="ic_flight.png">
        <dxn:TabViewItem.Content>
            <Label Text="Flight List Here"
                   VerticalTextAlignment="Center"
                   HorizontalTextAlignment="Center"/>
        </dxn:TabViewItem.Content>
    </dxn:TabViewItem>
    <dxn:TabViewItem HeaderText="TRIPS"
                 HeaderIcon="ic_work.png">
        <dxn:TabViewItem.Content>
            <Label Text="Finished Trips Here"
                   VerticalTextAlignment="Center"
                   HorizontalTextAlignment="Center"/>
        </dxn:TabViewItem.Content>
    </dxn:TabViewItem>
</dxn:TabView>
See Also