<?xml version="1.0" encoding="UTF-8" ?>
<ContentView
    x:Class="CafeTerrace.Views.DialogBox.FoodCounterDialogBox"
    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:model="clr-namespace:CafeTerrace.Models;assembly=CafeTerrace"
    Margin="35,0"
    VerticalOptions="Center"
    mc:Ignorable="d">
    <ContentView.Content>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Frame
                Grid.Row="1"
                Padding="15,35,15,35"
                BackgroundColor="Accent"
                CornerRadius="10">

                <Grid HorizontalOptions="Center">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="80" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>
                    <Button
                        Margin="5,0"
                        Padding="0"
                        BackgroundColor="{StaticResource PrimaryColor}"
                        Clicked="PlusButton_OnClicked"
                        CornerRadius="40"
                        FontFamily="{StaticResource MaterialFontFamily}"
                        FontSize="20"
                        HeightRequest="40"
                        Text="{x:Static model:MaterialIconFont.Plus}"
                        TextColor="Accent"
                        VerticalOptions="Center"
                        WidthRequest="40" />
                    <Label
                        x:Name="countLabel"
                        Grid.Column="1"
                        FontFamily="{StaticResource ShabnameBold}"
                        FontSize="27"
                        HorizontalOptions="Center"
                        Text="{Binding Path=Food.CountFood}"
                        TextColor="{StaticResource PrimaryColor}" />
                    <Button
                        Grid.Column="2"
                        Margin="5,0"
                        Padding="0"
                        BackgroundColor="{StaticResource PrimaryColor}"
                        Clicked="MinusButton_OnClicked"
                        CornerRadius="40"
                        FontFamily="{StaticResource MaterialFontFamily}"
                        FontSize="20"
                        HeightRequest="40"
                        Text="{x:Static model:MaterialIconFont.Minus}"
                        TextColor="Accent"
                        VerticalOptions="Center"
                        WidthRequest="40" />
                </Grid>
            </Frame>
            <Button
                Grid.Row="2"
                Margin="0,-25,0,0"
                Padding="0"
                BackgroundColor="{StaticResource PrimaryColor}"
                Clicked="SubmitButton_OnClicked"
                CornerRadius="35"
                HeightRequest="40"
                HorizontalOptions="Center"
                Text="تایید"
                WidthRequest="150" />
            <Frame
                Grid.Row="0"
                Margin="0,0,0,-18"
                Padding="25,7"
                BackgroundColor="Accent"
                CornerRadius="8"
                HorizontalOptions="Center">

                <Label
                    FontSize="20"
                    Text="تعداد این غذا را وارد کنید"
                    TextColor="{StaticResource PrimaryColor}" />
            </Frame>
        </Grid>
    </ContentView.Content>
</ContentView>