|
| 1 | +<?xml version="1.0" encoding="utf-8" ?> |
| 2 | +<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
| 4 | + xmlns:tabView="clr-namespace:Syncfusion.Maui.TabView;assembly=Syncfusion.Maui.TabView" |
| 5 | + x:Class="TabViewSample.MainPage" |
| 6 | + xmlns:local="clr-namespace:TabViewSample"> |
| 7 | + |
| 8 | + <ContentPage.BindingContext> |
| 9 | + <local:ViewModel/> |
| 10 | + </ContentPage.BindingContext> |
| 11 | + |
| 12 | + <tabView:SfTabView TabBarBackground="{Binding TabHeaderBackGround, Mode=TwoWay}" > |
| 13 | + <tabView:SfTabItem Header="Calls"> |
| 14 | + <tabView:SfTabItem.Content> |
| 15 | + <Grid BackgroundColor="White" x:Name="AllContactsGrid" > |
| 16 | + <ListView x:Name="ContactListView" |
| 17 | + ItemsSource="{Binding ContactList}" |
| 18 | + RowHeight="75"> |
| 19 | + <ListView.ItemTemplate> |
| 20 | + <DataTemplate> |
| 21 | + <ViewCell> |
| 22 | + <StackLayout Orientation="Vertical" Margin="30,0,0,0"> |
| 23 | + <Label |
| 24 | + Text="{Binding Name}" |
| 25 | + FontSize="24" |
| 26 | + /> |
| 27 | + <Label |
| 28 | + Text="{Binding Number}" |
| 29 | + FontSize="20" |
| 30 | + TextColor="LightSlateGray" /> |
| 31 | + </StackLayout> |
| 32 | + </ViewCell> |
| 33 | + </DataTemplate> |
| 34 | + </ListView.ItemTemplate> |
| 35 | + </ListView> |
| 36 | + </Grid> |
| 37 | + </tabView:SfTabItem.Content> |
| 38 | + </tabView:SfTabItem> |
| 39 | + <tabView:SfTabItem Header="Favorites"> |
| 40 | + <tabView:SfTabItem.Content> |
| 41 | + <Grid BackgroundColor="Green" x:Name="FavoritesGrid" /> |
| 42 | + </tabView:SfTabItem.Content> |
| 43 | + </tabView:SfTabItem> |
| 44 | + <tabView:SfTabItem Header="Contacts"> |
| 45 | + <tabView:SfTabItem.Content> |
| 46 | + <Grid BackgroundColor="Red" x:Name="AllContacts" /> |
| 47 | + </tabView:SfTabItem.Content> |
| 48 | + </tabView:SfTabItem> |
| 49 | + </tabView:SfTabView> |
| 50 | + |
| 51 | +</ContentPage> |
0 commit comments