<?xml version="1.0" encoding="UTF-8" ?>
<ContentView
    x:Class="CafeTerrace.Views.DialogBox.AddBirthDateDialogBox"
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:bitControls="clr-namespace:Bit.View.Controls;assembly=Bit.CSharpClient.Controls"
    xmlns:d="http://xamarin.com/schemas/2014/forms/design"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:noda="clr-namespace:NodaTime;assembly=NodaTime"
    Margin="8,0"
    VerticalOptions="Center"
    mc:Ignorable="d">
    <ContentView.Content>
        <Grid HorizontalOptions="FillAndExpand">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Frame
                Grid.Row="1"
                Padding="8"
                BackgroundColor="White"
                CornerRadius="8"
                HorizontalOptions="Fill">
                <Entry
                    x:Name="birthDayEntry"
                    Focused="BirthDayEntry_OnFocused"
                    FontSize="12"
                    Placeholder="تاریخ" />
            </Frame>
            <Frame
                Grid.Row="0"
                Padding="8"
                BackgroundColor="White"
                CornerRadius="8"
                FlowDirection="RightToLeft">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Label
                        Grid.Column="0"
                        Text="عنوان تاریخ"
                        VerticalOptions="Center" />
                    <Picker
                        x:Name="detailEntry"
                        Grid.Column="1"
                        FontSize="12">
                        <Picker.ItemsSource>
                            <x:Array Type="{x:Type x:String}">
                                <x:String>سالگرد عقد</x:String>
                                <x:String>تولد همسر</x:String>
                                <x:String>تولد فرزند</x:String>
                                <x:String>تولد مادر</x:String>
                                <x:String>تولد پدر</x:String>
                            </x:Array>
                        </Picker.ItemsSource>
                    </Picker>
                </Grid>
            </Frame>
            <Button
                Grid.Row="2"
                BackgroundColor="{StaticResource PrimaryColor}"
                Clicked="SubmitButton_OnClicked"
                CornerRadius="15"
                HeightRequest="40"
                Text="تایید و ثبت"
                TextColor="Accent" />
        </Grid>
    </ContentView.Content>
</ContentView>