TabPage.Items Property
Gets or sets the list of tab items the TabPage displays.
Namespace: DevExpress.XamarinForms.Navigation
Assembly: DevExpress.XamarinForms.Navigation.dll
NuGet Package: DevExpress.XamarinForms.Navigation
Declaration
public IList<TabPageItem> Items { get; }
Property Value
Type | Description |
---|---|
IList<TabPageItem> | The list of tab items the TabPage displays. |
Example
This example demonstrates how to use the Items
property to manually populate a TabPage instance with the following tab items:
- Calendar - Contains a ContentPage instance.
- Mail - Contains a NavigationPage instance with the InboxPage and SentItemsPage content pages added to the navigation stack.
<dxn:TabPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:TabPageExample"
xmlns:dxn="http://schemas.devexpress.com/xamarin/2014/forms/navigation"
x:Class="TabPageExample.MainPage"
HeaderPanelHeight="72"
HeaderPanelPosition="Bottom">
<dxn:TabPageItem>
<dxn:TabPageItem.Content>
<ContentPage Title="Calendar" Icon="ic_calendar.png">
<Label Text="Calendar Here"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand"/>
</ContentPage>
</dxn:TabPageItem.Content>
</dxn:TabPageItem>
<dxn:TabPageItem>
<dxn:TabPageItem.Content>
<NavigationPage Title="Mail" Icon="ic_mail.png">
<x:Arguments>
<local:InboxPage/>
</x:Arguments>
</NavigationPage>
</dxn:TabPageItem.Content>
</dxn:TabPageItem>
</dxn:TabPage>
See Also