<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
    x:Class="CafeTerrace.Views.ProfilePage"
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:model="clr-namespace:CafeTerrace.Models"
    xmlns:prism="http://prismlibrary.com"
    prism:ViewModelLocator.AutowireViewModel="True"
    BackgroundColor="{StaticResource Gray-200}"
    FlowDirection="RightToLeft"
    NavigationPage.HasNavigationBar="False">
    <ScrollView>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="10*" />
            </Grid.RowDefinitions>
            <Frame
                Grid.Row="0"
                Margin="0,-25,0,5"
                Padding="20,70,20,20"
                BackgroundColor="{StaticResource PrimaryColor}"
                CornerRadius="35">
                <Grid VerticalOptions="Center">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <Label
                        FontFamily="{StaticResource ShabnameBold}"
                        FontSize="16"
                        HorizontalOptions="Start"
                        Text="{Binding Path=SignUpUser.NameWClub}"
                        TextColor="White" />

                    <Button
                        Grid.Column="1"
                        Padding="0"
                        BackgroundColor="Accent"
                        Command="{Binding CloseUserButtonCommand}"
                        CornerRadius="25"
                        FontFamily="{StaticResource MaterialFontFamily}"
                        FontSize="27"
                        HeightRequest="45"
                        Text="{x:Static model:MaterialIconFont.ExitRun}"
                        TextColor="{StaticResource PrimaryColor}"
                        VerticalOptions="Center"
                        WidthRequest="45" />

                    <Button
                        Grid.Column="2"
                        Padding="0"
                        BackgroundColor="#90ffffff"
                        Command="{Binding BackButtonCommand}"
                        CornerRadius="25"
                        FontFamily="{StaticResource MaterialFontFamily}"
                        FontSize="30"
                        HeightRequest="45"
                        Text="{x:Static model:MaterialIconFont.ChevronLeft}"
                        TextColor="{StaticResource Gray-700}"
                        VerticalOptions="Center"
                        WidthRequest="45" />
                </Grid>

            </Frame>
            <StackLayout Grid.Row="1" Margin="15,8">

                <Grid x:Name="counterGrid">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Frame
                        Grid.Row="1"
                        Padding="15,30,15,20"
                        BackgroundColor="Accent"
                        CornerRadius="8">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>
                            <Grid Grid.Row="1" HorizontalOptions="Center">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>
                                <Frame
                                    Padding="12,15"
                                    BackgroundColor="{StaticResource PrimaryColor}"
                                    CornerRadius="5"
                                    HorizontalOptions="Center"
                                    VerticalOptions="Center"
                                    WidthRequest="30">
                                    <Label
                                        FontFamily="{StaticResource ShabnameBold}"
                                        FontSize="20"
                                        HorizontalOptions="Center"
                                        Text="{Binding Path=YekanSec}"
                                        TextColor="Accent" />
                                </Frame>
                                <Frame
                                    Grid.Column="1"
                                    Padding="12,15"
                                    BackgroundColor="{StaticResource PrimaryColor}"
                                    CornerRadius="5"
                                    HorizontalOptions="Center"
                                    VerticalOptions="Center"
                                    WidthRequest="30">
                                    <Label
                                        FontFamily="{StaticResource ShabnameBold}"
                                        FontSize="20"
                                        HorizontalOptions="Center"
                                        Text="{Binding Path=DahganSec}"
                                        TextColor="Accent" />
                                </Frame>
                                <Label
                                    Grid.Column="2"
                                    FontFamily="{StaticResource ShabnameBold}"
                                    FontSize="35"
                                    HorizontalOptions="Center"
                                    Text=":"
                                    TextColor="{StaticResource PrimaryColor}" />
                                <Frame
                                    Grid.Column="3"
                                    Padding="12,15"
                                    BackgroundColor="{StaticResource PrimaryColor}"
                                    CornerRadius="5"
                                    HorizontalOptions="Center"
                                    VerticalOptions="Center"
                                    WidthRequest="30">
                                    <Label
                                        FontFamily="{StaticResource ShabnameBold}"
                                        FontSize="20"
                                        HorizontalOptions="Center"
                                        Text="{Binding Path=YekanMin}"
                                        TextColor="Accent" />
                                </Frame>
                                <Frame
                                    Grid.Column="4"
                                    Padding="12,15"
                                    BackgroundColor="{StaticResource PrimaryColor}"
                                    CornerRadius="5"
                                    HorizontalOptions="Center"
                                    VerticalOptions="Center"
                                    WidthRequest="30">
                                    <Label
                                        FontFamily="{StaticResource ShabnameBold}"
                                        FontSize="20"
                                        HorizontalOptions="Center"
                                        Text="{Binding Path=DahganMin}"
                                        TextColor="Accent" />
                                </Frame>
                            </Grid>
                            <Grid
                                Grid.Row="2"
                                Margin="0,5,0,0"
                                HorizontalOptions="Fill">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Label
                                    Text="غذاهای این سفارش : "
                                    TextColor="White"
                                    VerticalOptions="Center" />

                                <ScrollView
                                    Grid.Column="1"
                                    HorizontalScrollBarVisibility="Never"
                                    Orientation="Horizontal"
                                    VerticalScrollBarVisibility="Never">

                                    <StackLayout BindableLayout.ItemsSource="{Binding Path=Foods}" Orientation="Horizontal">
                                        <BindableLayout.ItemTemplate>
                                            <DataTemplate>
                                                <Grid>
                                                    <Frame
                                                        Padding="13,2,25,4"
                                                        BackgroundColor="{StaticResource PrimaryColor}"
                                                        CornerRadius="25">
                                                        <Label
                                                            FontFamily="{StaticResource ShabnameBold}"
                                                            FontSize="10"
                                                            Text="{Binding Path=Food.Name}"
                                                            TextColor="Accent"
                                                            VerticalOptions="Center" />
                                                    </Frame>
                                                    <Frame
                                                        Margin="2"
                                                        Padding="0"
                                                        BackgroundColor="Accent"
                                                        CornerRadius="10"
                                                        HasShadow="False"
                                                        HeightRequest="18"
                                                        HorizontalOptions="End"
                                                        VerticalOptions="Center"
                                                        WidthRequest="18">

                                                        <Label
                                                            FontFamily="{StaticResource ShabnameBold}"
                                                            FontSize="10"
                                                            HorizontalOptions="Center"
                                                            Text="{Binding Path=CountFood}"
                                                            TextColor="{StaticResource PrimaryColor}"
                                                            VerticalOptions="Center" />
                                                    </Frame>
                                                </Grid>
                                            </DataTemplate>
                                        </BindableLayout.ItemTemplate>
                                    </StackLayout>
                                </ScrollView>
                            </Grid>
                        </Grid>
                    </Frame>

                    <Frame
                        Grid.Row="0"
                        Margin="0,0,0,-25"
                        Padding="25,10,25,0"
                        BackgroundColor="{StaticResource PrimaryColor}"
                        CornerRadius="25"
                        HorizontalOptions="Center"
                        VerticalOptions="Start">

                        <Label
                            Margin="0,0,0,10"
                            FontFamily="{StaticResource ShabnameBold}"
                            FontSize="16"
                            HorizontalOptions="Center"
                            HorizontalTextAlignment="Center"
                            Text="آخرین سفارش شــــما" />
                    </Frame>

                </Grid>

                <!--<Grid Margin="0,20">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Frame CornerRadius="8" HorizontalOptions="Center">
                        <StackLayout>
                            <Label
                                FontFamily="{StaticResource MaterialFontFamily}"
                                FontSize="80"
                                HorizontalOptions="Center"
                                Text="{x:Static model:MaterialIconFont.Food}"
                                TextColor="{StaticResource Orange}" />
                            <Label
                                FontFamily="{StaticResource ShabnameBold}"
                                FontSize="28"
                                HorizontalOptions="Center"
                                Text="{Binding Path=User.OrderAmountCount}"
                                TextColor="{StaticResource Orange}" />
                            <Label
                                FontFamily="{StaticResource Shabname}"
                                FontSize="20"
                                HorizontalOptions="Center"
                                HorizontalTextAlignment="Center"
                                Text="مجموع سفارشات" />
                        </StackLayout>
                    </Frame>
                    <Frame
                        Grid.Column="1"
                        CornerRadius="8"
                        HorizontalOptions="Center">
                        <StackLayout>
                            <Label
                                FontFamily="{StaticResource MaterialFontFamily}"
                                FontSize="80"
                                HorizontalOptions="Center"
                                Text="{x:Static model:MaterialIconFont.FoodVariant}"
                                TextColor="{StaticResource Orange}" />
                            <Label
                                FontFamily="{StaticResource ShabnameBold}"
                                FontSize="28"
                                HorizontalOptions="Center"
                                Text="{Binding Path=User.OrderCount}"
                                TextColor="{StaticResource Orange}" />
                            <Label
                                FontFamily="{StaticResource Shabname}"
                                FontSize="20"
                                HorizontalOptions="Center"
                                HorizontalTextAlignment="Center"
                                Text="کـــل سفارشات" />
                        </StackLayout>
                    </Frame>
                </Grid>-->



                <Grid Margin="0,15,0,0">
                    <Frame
                        Margin="-15,0"
                        Padding="8,15,8,8"
                        CornerRadius="5">

                        <StackLayout>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>
                                <Entry
                                    Grid.Row="0"
                                    Grid.Column="0"
                                    FontSize="13"
                                    Placeholder="نام "
                                    Text="{Binding Path=SignUpUser.FirstName, Mode=TwoWay}" />
                                <Entry
                                    Grid.Row="0"
                                    Grid.Column="1"
                                    FontSize="13"
                                    Placeholder=" نام خانوادگی"
                                    Text="{Binding Path=SignUpUser.LastName, Mode=TwoWay}" />
                                <Entry
                                    Grid.Row="1"
                                    Grid.Column="0"
                                    FontSize="13"
                                    Keyboard="Numeric"
                                    Placeholder="شماره همراه"
                                    Text="{Binding Path=SignUpUser.Phone, Mode=TwoWay}" />
                                <Grid Grid.Row="1" Grid.Column="1">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="*" />
                                    </Grid.ColumnDefinitions>
                                    <Label
                                        Margin="0,0,4,-3"
                                        Text="جنسیت"
                                        VerticalOptions="Center" />
                                    <Picker
                                        Grid.Column="1"
                                        FontSize="13"
                                        SelectedIndex="{Binding Path=SignUpUser.GenderIndex, Mode=TwoWay}"
                                        SelectedIndexChanged="GenderPicker_OnSelectedIndexChanged">
                                        <Picker.Items>
                                            <x:String>مرد</x:String>
                                            <x:String>زن</x:String>
                                        </Picker.Items>
                                    </Picker>
                                </Grid>
                                <Grid
                                    Grid.Row="2"
                                    Grid.Column="0"
                                    Grid.ColumnSpan="2">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="*" />
                                    </Grid.ColumnDefinitions>
                                    <Label
                                        Margin="0,0,4,-3"
                                        Text="تاریخ تولد"
                                        VerticalOptions="Center" />

                                    <Entry
                                        x:Name="birthDayEntry"
                                        Grid.Column="1"
                                        FocusChangeRequested="BirthDayEntry_OnFocusChangeRequested"
                                        Focused="BirthDayEntry_OnFocused"
                                        FontSize="13"
                                        Placeholder="تاریخ تولد"
                                        Text="{Binding Path=SignUpUser.BirthDatePersian, Mode=TwoWay}" />
                                </Grid>


                            </Grid>
                        </StackLayout>
                    </Frame>
                    <Frame
                        Margin="0,-15,0,0"
                        Padding="35,5"
                        BackgroundColor="Accent"
                        CornerRadius="25"
                        HorizontalOptions="Center"
                        VerticalOptions="Start">
                        <Label
                            HorizontalOptions="Center"
                            Text="اطلاعات شخصی"
                            TextColor="{StaticResource PrimaryColor}" />
                    </Frame>
                </Grid>


                <Grid Margin="0,25,0,0">
                    <Frame
                        Margin="-15,0"
                        Padding="0,15,0,35"
                        CornerRadius="5">

                        <StackLayout Margin="0,8,0,0">
                            <Grid Margin="8,0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Label Text="شغل شمـــا : " VerticalOptions="Center" />
                                <Entry
                                    Grid.Column="1"
                                    Focused="Job_OnFocused"
                                    FontSize="13"
                                    Text="{Binding Path=SelectedJob.Name, FallbackValue='شغل', TargetNullValue='شغل'}"
                                    VerticalOptions="Center" />

                            </Grid>
                            <Grid Margin="5,5,15,0">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Label
                                        FontFamily="{StaticResource Shabname}"
                                        FontSize="16"
                                        Text="تاریخ های مهم زندگی شما"
                                        VerticalOptions="Center" />
                                    <Button
                                        Grid.Column="1"
                                        Padding="0"
                                        BackgroundColor="{StaticResource PrimaryColor}"
                                        Command="{Binding AddBirthDateCommand}"
                                        CornerRadius="15"
                                        FontSize="13"
                                        HeightRequest="30"
                                        Text="افزودن"
                                        TextColor="Accent"
                                        WidthRequest="90" />
                                </Grid>
                            </Grid>
                            <ScrollView
                                Margin="0,8"
                                HeightRequest="40"
                                Orientation="Horizontal">

                                <StackLayout
                                    BindableLayout.ItemsSource="{Binding Path=ProfileRoot.BirthDates}"
                                    Orientation="Horizontal"
                                    VerticalOptions="Center">
                                    <BindableLayout.ItemTemplate>
                                        <DataTemplate>
                                            <Grid>
                                                <Frame
                                                    Padding="8,3,3,3"
                                                    BackgroundColor="Accent"
                                                    CornerRadius="25">
                                                    <StackLayout Orientation="Horizontal">
                                                        <Label
                                                            FontSize="12"
                                                            Text="{Binding PersianDate}"
                                                            TextColor="{StaticResource PrimaryColor}"
                                                            VerticalOptions="Center" />
                                                        <Frame
                                                            Padding="12,3"
                                                            BackgroundColor="{StaticResource PrimaryColor}"
                                                            CornerRadius="20">
                                                            <Label
                                                                FontSize="12"
                                                                Text="{Binding Detail}"
                                                                TextColor="Accent"
                                                                VerticalOptions="Center" />
                                                        </Frame>
                                                    </StackLayout>
                                                    <Frame.GestureRecognizers>
                                                        <TapGestureRecognizer Tapped="BirthDateTapGestureRecognizer_OnTapped" />
                                                    </Frame.GestureRecognizers>
                                                </Frame>
                                            </Grid>
                                        </DataTemplate>
                                    </BindableLayout.ItemTemplate>
                                </StackLayout>
                            </ScrollView>
                        </StackLayout>


                    </Frame>
                    <Frame
                        Margin="0,-25,0,0"
                        Padding="35,5"
                        BackgroundColor="Accent"
                        CornerRadius="25"
                        HorizontalOptions="Center"
                        VerticalOptions="Start">
                        <Label
                            HorizontalOptions="Center"
                            Text="اطلاعات باشگاه مشتریان"
                            TextColor="{StaticResource PrimaryColor}" />
                    </Frame>
                </Grid>
                <Button
                    Margin="5,-30,5,5"
                    Padding="0"
                    BackgroundColor="{StaticResource PrimaryColor}"
                    Command="{Binding EditUserButtonCommand}"
                    CornerRadius="30"
                    HeightRequest="42"
                    Text="تایید و تغییر"
                    TextColor="Accent" />


                <Grid Margin="0,20,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <StackLayout Orientation="Horizontal">
                        <Label
                            FontFamily="{StaticResource ShabnameBold}"
                            FontSize="25"
                            Text="{Binding Path=ProfileRoot.OrderCount}"
                            VerticalOptions="Center" />
                        <Label
                            FontFamily="{StaticResource Shabname}"
                            FontSize="20"
                            Text="سفارشات شما"
                            VerticalOptions="Center" />
                    </StackLayout>
                </Grid>
                <ScrollView Margin="-10,8" Orientation="Horizontal">

                    <StackLayout BindableLayout.ItemsSource="{Binding Path=ProfileRoot.Orders}" Orientation="Horizontal">
                        <BindableLayout.ItemTemplate>
                            <DataTemplate>
                                <Grid>
                                    <Frame
                                        Margin="3"
                                        Padding="8"
                                        BackgroundColor="Accent"
                                        CornerRadius="10"
                                        WidthRequest="300">
                                        <Grid>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto" />
                                                <RowDefinition Height="Auto" />
                                                <RowDefinition Height="*" />
                                            </Grid.RowDefinitions>
                                            <Grid Grid.Row="1">
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto" />
                                                    <ColumnDefinition Width="*" />
                                                </Grid.ColumnDefinitions>

                                                <Label
                                                    FontFamily="{StaticResource ShabnameBold}"
                                                    FontSize="20"
                                                    Text="{Binding TotalPriceFormater}"
                                                    TextColor="{StaticResource PrimaryColor}" />
                                                <Label
                                                    Grid.Column="1"
                                                    FontFamily="{StaticResource Shabname}"
                                                    FontSize="11"
                                                    Text="{Binding PersianRegister}"
                                                    TextColor="{StaticResource PrimaryColor}"
                                                    VerticalOptions="Center" />
                                            </Grid>

                                            <FlexLayout
                                                Grid.Row="2"
                                                AlignContent="Start"
                                                BindableLayout.ItemsSource="{Binding OrderFoods}"
                                                JustifyContent="End"
                                                VerticalOptions="Center"
                                                Wrap="Wrap">
                                                <BindableLayout.ItemTemplate>
                                                    <DataTemplate>

                                                        <Grid
                                                            Margin="3,3"
                                                            HeightRequest="30"
                                                            WidthRequest="140">
                                                            <Frame
                                                                Padding="13,2,25,4"
                                                                BackgroundColor="{StaticResource PrimaryColor}"
                                                                CornerRadius="25">
                                                                <Label
                                                                    FontFamily="{StaticResource ShabnameBold}"
                                                                    FontSize="10"
                                                                    Text="{Binding Path=Food.Name}"
                                                                    TextColor="Accent"
                                                                    VerticalOptions="Center" />
                                                            </Frame>
                                                            <Frame
                                                                Margin="2"
                                                                Padding="0"
                                                                BackgroundColor="Accent"
                                                                CornerRadius="15"
                                                                HasShadow="False"
                                                                HeightRequest="24"
                                                                HorizontalOptions="End"
                                                                VerticalOptions="Center"
                                                                WidthRequest="24">

                                                                <Label
                                                                    FontFamily="{StaticResource ShabnameBold}"
                                                                    FontSize="10"
                                                                    HorizontalOptions="Center"
                                                                    Text="{Binding Path=CountFood}"
                                                                    TextColor="{StaticResource PrimaryColor}"
                                                                    VerticalOptions="Center" />
                                                            </Frame>
                                                        </Grid>
                                                    </DataTemplate>
                                                </BindableLayout.ItemTemplate>
                                            </FlexLayout>
                                        </Grid>
                                    </Frame>
                                </Grid>
                            </DataTemplate>
                        </BindableLayout.ItemTemplate>
                    </StackLayout>
                </ScrollView>

                <Grid Margin="0,20,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <StackLayout Orientation="Horizontal">
                        <Label
                            FontFamily="{StaticResource ShabnameBold}"
                            FontSize="25"
                            Text="{Binding Path=ProfileRoot.RatesCount}"
                            VerticalOptions="Center" />
                        <Label
                            FontFamily="{StaticResource Shabname}"
                            FontSize="20"
                            Text="دیدگاه های شما"
                            VerticalOptions="Center" />
                    </StackLayout>
                </Grid>
                <CollectionView
                    Margin="-10,8"
                    HeightRequest="120"
                    ItemsSource="{Binding Path=ProfileRoot.Rates}">
                    <CollectionView.ItemsLayout>
                        <LinearItemsLayout
                            ItemSpacing="5"
                            Orientation="Horizontal"
                            SnapPointsAlignment="Center"
                            SnapPointsType="MandatorySingle" />
                    </CollectionView.ItemsLayout>
                    <CollectionView.ItemTemplate>
                        <DataTemplate>
                            <Grid>
                                <Frame
                                    Margin="3"
                                    Padding="8"
                                    CornerRadius="10"
                                    WidthRequest="300">
                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto" />
                                            <RowDefinition Height="Auto" />
                                            <RowDefinition Height="Auto" />
                                        </Grid.RowDefinitions>
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="*" />
                                                <ColumnDefinition Width="Auto" />
                                            </Grid.ColumnDefinitions>
                                            <Label
                                                FontFamily="{StaticResource ShabnameBold}"
                                                FontSize="16"
                                                HorizontalOptions="Start"
                                                Text="{Binding Path=UserName}"
                                                TextColor="#555" />
                                            <Label
                                                Grid.Column="1"
                                                FontFamily="{StaticResource Shabname}"
                                                FontSize="12"
                                                Text="{Binding Path=PersianRegister}"
                                                TextColor="#555"
                                                VerticalOptions="Center" />
                                        </Grid>
                                        <Grid Grid.Row="1">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="*" />
                                            </Grid.ColumnDefinitions>
                                        </Grid>
                                        <Label
                                            Grid.Row="2"
                                            FontFamily="{StaticResource Shabname}"
                                            FontSize="11"
                                            MaxLines="3"
                                            Text="{Binding Description}"
                                            VerticalOptions="Center" />
                                    </Grid>
                                </Frame>
                            </Grid>
                        </DataTemplate>
                    </CollectionView.ItemTemplate>
                </CollectionView>

            </StackLayout>
        </Grid>
    </ScrollView>
</ContentPage>