<?xml version="1.0" encoding="UTF-8" ?>
<ContentView
    x:Class="Moshaverino.Views.ActivePhone.EnterCode"
    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"
    BackgroundColor="#eee"
    FlowDirection="RightToLeft"
    mc:Ignorable="d">
    <ContentView.Content>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="2*" />
                <RowDefinition Height="8*" />
            </Grid.RowDefinitions>
            <Grid Grid.Row="1" VerticalOptions="Center">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Label
                    Grid.Row="0"
                    Margin="0,25"
                    FontFamily="{StaticResource ShabnameBold}"
                    FontSize="20"
                    HorizontalOptions="Center"
                    HorizontalTextAlignment="Center"
                    Text="کد تاییدیه پیامکی را وارد کنید" />
                <Grid Grid.Row="1" Margin="25,5,25,15">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Frame
                        Margin="4,0"
                        Padding="4,0"
                        CornerRadius="4">
                        <Entry
                            x:Name="codeEntryF"
                            Keyboard="Numeric"
                            TextChanged="CodeEntryF_OnTextChanged" />
                    </Frame>
                    <Frame
                        Grid.Column="5"
                        Margin="4,0"
                        Padding="4,0"
                        CornerRadius="4">
                        <Entry
                            x:Name="codeEntryA"
                            Keyboard="Numeric"
                            TextChanged="CodeEntryA_OnTextChanged" />
                    </Frame>
                    <Frame
                        Grid.Column="4"
                        Margin="4,0"
                        Padding="4,0"
                        CornerRadius="4">
                        <Entry
                            x:Name="codeEntryB"
                            Keyboard="Numeric"
                            TextChanged="CodeEntryB_OnTextChanged" />
                    </Frame>
                    <Frame
                        Grid.Column="3"
                        Margin="4,0"
                        Padding="4,0"
                        CornerRadius="4">
                        <Entry
                            x:Name="codeEntryC"
                            Keyboard="Numeric"
                            TextChanged="CodeEntryC_OnTextChanged" />
                    </Frame>
                    <Frame
                        Grid.Column="2"
                        Margin="4,0"
                        Padding="4,0"
                        CornerRadius="4">
                        <Entry
                            x:Name="codeEntryD"
                            Keyboard="Numeric"
                            TextChanged="CodeEntryD_OnTextChanged" />
                    </Frame>
                    <Frame
                        Grid.Column="1"
                        Margin="4,0"
                        Padding="4,0"
                        CornerRadius="4">
                        <Entry
                            x:Name="codeEntryE"
                            Keyboard="Numeric"
                            TextChanged="CodeEntryE_OnTextChanged" />
                    </Frame>
                </Grid>
                <StackLayout Grid.Row="2">
                    <StackLayout HorizontalOptions="Center" Orientation="Horizontal">
                        <Label
                            FontFamily="{StaticResource Shabname}"
                            Text="هنوز دریافت نکرده اید ؟ "
                            VerticalOptions="Center" />
                        <Button
                            BackgroundColor="Transparent"
                            FontFamily="{StaticResource Shabname}"
                            HorizontalOptions="Center"
                            Text="دریافت مجدد کد"
                            TextColor="#785284"
                            VerticalOptions="Center" />

                    </StackLayout>
                    <Button
                        Margin="35,15,35,35"
                        BackgroundColor="#785284"
                        Clicked="SubmitCodeButton_OnClicked"
                        Command="{Binding SubmitCodeButtonCommand}"
                        CornerRadius="25"
                        FontFamily="{StaticResource ShabnameBold}"
                        FontSize="18"
                        Text="تایید"
                        TextColor="White" />
                </StackLayout>
            </Grid>
        </Grid>
    </ContentView.Content>
</ContentView>
<!--

                <Grid Grid.Row="1" VerticalOptions="Center">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Frame
                        Grid.Column="0"
                        Margin="8,2"
                        Padding="0,0"
                        BackgroundColor="White"
                        CornerRadius="5">
                        <Entry
                            x:Name="codeEntryA"
                            FontFamily="{StaticResource Shabname}"
                            HorizontalTextAlignment="Center"
                            Keyboard="Numeric"
                            TextChanged="CodeEntryA_OnTextChanged"
                            WidthRequest="40" />
                    </Frame>
                    <Frame
                        Grid.Column="1"
                        Margin="8,2"
                        Padding="0,0"
                        BackgroundColor="White"
                        CornerRadius="5">
                        <Entry
                            x:Name="codeEntryB"
                            FontFamily="{StaticResource Shabname}"
                            HorizontalTextAlignment="Center"
                            Keyboard="Numeric"
                            WidthRequest="40" />
                    </Frame>
                    <Frame
                        Grid.Column="2"
                        Margin="8,2"
                        Padding="0,0"
                        BackgroundColor="White"
                        CornerRadius="5">
                        <Entry
                            x:Name="codeEntryC"
                            FontFamily="{StaticResource Shabname}"
                            HorizontalTextAlignment="Center"
                            Keyboard="Numeric"
                            WidthRequest="40" />
                    </Frame>
                    <Frame
                        Grid.Column="3"
                        Margin="8,2"
                        Padding="0,0"
                        BackgroundColor="White"
                        CornerRadius="5">
                        <Entry
                            x:Name="codeEntryD"
                            FontFamily="{StaticResource Shabname}"
                            HorizontalTextAlignment="Center"
                            Keyboard="Numeric"
                            WidthRequest="40" />
                    </Frame>
                    <Frame
                        Grid.Column="4"
                        Margin="8,2"
                        Padding="0,0"
                        BackgroundColor="White"
                        CornerRadius="5">
                        <Entry
                            x:Name="codeEntryE"
                            FontFamily="{StaticResource Shabname}"
                            HorizontalTextAlignment="Center"
                            Keyboard="Numeric"
                            WidthRequest="40" />
                    </Frame>
                    <Frame
                        Grid.Column="5"
                        Margin="8,2"
                        Padding="0,0"
                        BackgroundColor="White"
                        CornerRadius="5">
                        <Entry
                            x:Name="codeEntryF"
                            FontFamily="{StaticResource Shabname}"
                            HorizontalTextAlignment="Center"
                            Keyboard="Numeric"
                            WidthRequest="40" />
                    </Frame>
                </Grid>-->