<?xml version="1.0" encoding="UTF-8" ?>
<ContentView
    x:Class="CafeTerrace.Views.DialogBox.AddCommentDialogBox"
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:d="http://xamarin.com/schemas/2014/forms/design"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:models="clr-namespace:CafeTerrace.Models;assembly=CafeTerrace"
    Margin="40,0"
    FlowDirection="RightToLeft"
    VerticalOptions="Center"
    mc:Ignorable="d">
    <ContentView.Content>
        <StackLayout>
            <Frame
                Padding="15"
                BackgroundColor="White"
                CornerRadius="10">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Label
                        Grid.Column="0"
                        Margin="10,0,0,0"
                        Text="امتیاز شما به غذا"
                        TextColor="Accent"
                        VerticalOptions="Center" />
                    <StackLayout
                        x:Name="starsStack"
                        Grid.Column="1"
                        Orientation="Horizontal">
                        <Label
                            ClassId="1"
                            FontFamily="{StaticResource MaterialFontFamily}"
                            FontSize="28"
                            Text="{x:Static models:MaterialIconFont.Star}"
                            TextColor="{StaticResource Gray-300}"
                            VerticalOptions="Center">
                            <Label.GestureRecognizers>
                                <TapGestureRecognizer Tapped="StarLabel_OnTapped" />
                            </Label.GestureRecognizers>
                        </Label>
                        <Label
                            ClassId="2"
                            FontFamily="{StaticResource MaterialFontFamily}"
                            FontSize="28"
                            Text="{x:Static models:MaterialIconFont.Star}"
                            TextColor="{StaticResource Gray-300}"
                            VerticalOptions="Center">
                            <Label.GestureRecognizers>
                                <TapGestureRecognizer Tapped="StarLabel_OnTapped" />
                            </Label.GestureRecognizers>
                        </Label>
                        <Label
                            ClassId="3"
                            FontFamily="{StaticResource MaterialFontFamily}"
                            FontSize="28"
                            Text="{x:Static models:MaterialIconFont.Star}"
                            TextColor="{StaticResource Gray-300}"
                            VerticalOptions="Center">
                            <Label.GestureRecognizers>
                                <TapGestureRecognizer Tapped="StarLabel_OnTapped" />
                            </Label.GestureRecognizers>
                        </Label>
                        <Label
                            ClassId="4"
                            FontFamily="{StaticResource MaterialFontFamily}"
                            FontSize="28"
                            Text="{x:Static models:MaterialIconFont.Star}"
                            TextColor="{StaticResource Gray-300}"
                            VerticalOptions="Center">
                            <Label.GestureRecognizers>
                                <TapGestureRecognizer Tapped="StarLabel_OnTapped" />
                            </Label.GestureRecognizers>
                        </Label>
                        <Label
                            ClassId="5"
                            FontFamily="{StaticResource MaterialFontFamily}"
                            FontSize="28"
                            Text="{x:Static models:MaterialIconFont.Star}"
                            TextColor="{StaticResource Gray-300}"
                            VerticalOptions="Center">
                            <Label.GestureRecognizers>
                                <TapGestureRecognizer Tapped="StarLabel_OnTapped" />
                            </Label.GestureRecognizers>
                        </Label>

                    </StackLayout>
                </Grid>
            </Frame>
            <Frame Padding="15" CornerRadius="10">
                <StackLayout>
                    <Label Text="متن پیام شما" />
                    <Editor
                        x:Name="commentEditor"
                        FontSize="13"
                        HeightRequest="100" />
                </StackLayout>
            </Frame>
            <Button
                BackgroundColor="{StaticResource PrimaryColor}"
                Clicked="SubmitButton_OnClicked"
                CornerRadius="10"
                FontFamily="{StaticResource ShabnameBold}"
                FontSize="17"
                Text="تایید و ثبت"
                TextColor="Accent" />
        </StackLayout>
    </ContentView.Content>
</ContentView>