<?xml version="1.0" encoding="utf-8"?>

<ContentPage
    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"
    mc:Ignorable="d"
    x:Class="TheGameExtreme.view.MainPage">

    <ScrollView
        Orientation="Vertical">

        <StackLayout>

            <StackLayout>
                <StackLayout
                    Orientation="Vertical"
                    Margin="10,20,10,20">
                    <Label x:Name="pseudo" Text="Pseudo" />
                    <Label Text="Selectionner la pile sur laquel vous souhaitez poser la carte:" />
                    <StackLayout
                        Orientation="Horizontal"
                        Margin="0,0,0,40">
                        <StackLayout
                            Orientation="Vertical">
                            <Label HorizontalTextAlignment="Center" x:Name="pile0" Text="1" />
                            <StackLayout
                                Orientation="Horizontal">
                                <CheckBox x:Name="checkbox0" CheckedChanged="radioButton" />
                                <Label VerticalTextAlignment="Center" Text="Pile Ascendante" />
                            </StackLayout>
                        </StackLayout>
                        <StackLayout
                            Orientation="Vertical">
                            <Label HorizontalTextAlignment="Center" x:Name="pile1" Text="1" />
                            <StackLayout
                                Orientation="Horizontal">
                                <CheckBox x:Name="checkbox1" CheckedChanged="radioButton" />
                                <Label VerticalTextAlignment="Center" Text="Pile Ascendante" />
                            </StackLayout>
                        </StackLayout>
                        <StackLayout
                            Orientation="Vertical">
                            <Label HorizontalTextAlignment="Center" x:Name="pile2" Text="100" />
                            <StackLayout
                                Orientation="Horizontal">
                                <CheckBox x:Name="checkbox2" CheckedChanged="radioButton" />
                                <Label VerticalTextAlignment="Center" Text="Pile Descendante" />
                            </StackLayout>
                        </StackLayout>
                        <StackLayout
                            Orientation="Vertical">
                            <Label HorizontalTextAlignment="Center" x:Name="pile3" Text="100" />
                            <StackLayout
                                Orientation="Horizontal">
                                <CheckBox x:Name="checkbox3" CheckedChanged="radioButton" />
                                <Label VerticalTextAlignment="Center" Text="Pile Descendante" />
                            </StackLayout>
                        </StackLayout>
                    </StackLayout>
                    <Label Text="Veuillez selectionner une carte à placer:" />
                    <ScrollView
                        Orientation="Horizontal"
                        Padding="0,5,0,5">
                        <StackLayout
                            Orientation="Horizontal"
                            x:Name="Hand">
                            <Button x:Name="card1" Clicked="played" />
                            <Button x:Name="card2" Clicked="played" />
                            <Button x:Name="card3" Clicked="played" />
                            <Button x:Name="card4" Clicked="played" />
                            <Button x:Name="card5" Clicked="played" />
                            <Button x:Name="card6" Clicked="played" />
                            <Button x:Name="card7" Clicked="played" />
                        </StackLayout>
                    </ScrollView>
                </StackLayout>
                <StackLayout
                    x:Name="botPanel"
                    Orientation="Vertical"
                    Margin="20">
                    <Button Text="End Turn" Clicked="endTurn" />
                    <Label x:Name="Alert" />
                </StackLayout>
            </StackLayout>

        </StackLayout>

    </ScrollView>

</ContentPage>