<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:viewmodel="clr-namespace:ZUMOBAPP.ViewModels"
xmlns:helper="clr-namespace:ZUMOBAPP.Helpers" Title="Class Attendance"
xmlns:syncfusion="clr-namespace:Syncfusion.ListView.XForms;assembly=Syncfusion.SfListView.XForms"
xmlns:dataSource="clr-namespace:Syncfusion.DataSource;assembly=Syncfusion.DataSource.Portable"
x:Class="ZUMOBAPP.Views.Faculty.Attendance">
<ContentPage.BindingContext>
<viewmodel:AttendanceViewModel />
</ContentPage.BindingContext>
<ContentPage.Resources>
<ResourceDictionary>
<helper:GroupHeaderConverter x:Key="TemplateConverter"/>
<helper:IndexToColorConverter x:Key="IndexToColorConverter"/>
</ResourceDictionary>
</ContentPage.Resources>
<ContentPage.Content>
<Grid RowSpacing="0" ColumnSpacing="0" Padding="0" Margin="0">
<syncfusion:SfListView x:Name="listViewMain" AutoFitMode="Height" AllowGroupExpandCollapse="True" SelectionMode="None"
GroupHeaderSize="50" SelectionBackgroundColor="White" ItemsSource="{Binding AttendanceInfo}">
<syncfusion:SfListView.DataSource>
<dataSource:DataSource>
<dataSource:DataSource.GroupDescriptors>
<dataSource:GroupDescriptor PropertyName="DayOfWeekWithDate" />
</dataSource:DataSource.GroupDescriptors>
</dataSource:DataSource>
</syncfusion:SfListView.DataSource>
<syncfusion:SfListView.GroupHeaderTemplate>
<DataTemplate>
<StackLayout Orientation="Horizontal" x:Name="stackGroupHeader" Margin="0,0,0,2"
BackgroundColor="{Binding Level,Converter={StaticResource TemplateConverter}}"
Padding="{Binding Level,Converter={StaticResource TemplateConverter}}">
<Label Text="{Binding Key}" FontSize="22"
FontAttributes="Bold" Margin="3"
VerticalOptions="Center" HorizontalOptions="Start">
<Label.FontSize>
<OnPlatform x:TypeArguments="x:Double">
<OnPlatform.WinPhone>
<OnIdiom x:TypeArguments="x:Double" Phone="18" Tablet="22" />
</OnPlatform.WinPhone>
<OnPlatform.Android>
<OnIdiom x:TypeArguments="x:Double"
Phone="18"
Tablet="22" />
</OnPlatform.Android>
<OnPlatform.iOS>
<OnIdiom x:TypeArguments="x:Double"
Phone="18"
Tablet="22" />
</OnPlatform.iOS>
</OnPlatform>
</Label.FontSize>
</Label>
<!--<Image Source="plus" VerticalOptions="Center" HorizontalOptions="End" Margin="0,0,10,0"></Image>-->
</StackLayout>
</DataTemplate>
</syncfusion:SfListView.GroupHeaderTemplate>
<syncfusion:SfListView.ItemTemplate>
<DataTemplate>
<Grid RowSpacing="0" ColumnSpacing="0" Padding="0" Margin="0" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">
<syncfusion:SfListView ItemTapped="listViewInner_ItemTapped" x:Name="listViewInner" ItemSize="110" ItemsSource="{Binding Listcsviewmodel}" SelectionBackgroundColor="White">
<syncfusion:SfListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<ViewCell.View>
<StackLayout HeightRequest="100">
<Label Text="hello"></Label>
<Label Text="hello1"></Label>
<Label Text="hello2"></Label>
<Label Text="hello3"></Label>
<Label Text="hello4"></Label>
<Label Text="hello5"></Label>
</StackLayout>
</ViewCell.View>
</ViewCell>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
</syncfusion:SfListView>
</Grid>
</DataTemplate>
</syncfusion:SfListView.ItemTemplate>
</syncfusion:SfListView>
</Grid>
</ContentPage.Content>
</ContentPage>