<phone:PhoneApplicationPage     
    x:Class="covoiturage.inscription"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="#603D6AFF" OpacityMask="Black">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="PageTitle" Text="Covoiturage" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" Foreground="White" TextAlignment="Center" OpacityMask="#FE000000" UseLayoutRounding="True" AllowDrop="False">
            </TextBlock>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="GridChauffeur" Grid.Row="1" Margin="12,0,12,306" BindingValidationError="StackPanel_BindingValidationError"  >
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="9,21,0,0" Name="textBlock1" Text="Nom*" VerticalAlignment="Top" Width="102" />
            <TextBox Height="71" HorizontalAlignment="Left" Margin="117,-5,0,0" Name="txtNom"  VerticalAlignment="Top" Width="231" Text="{Binding  nom, NotifyOnValidationError=True,
                Mode=TwoWay,ValidatesOnExceptions =True }"/>

            <TextBlock Height="38" HorizontalAlignment="Left" Margin="6,77,0,0" Name="textBlock2" Text="Prénom" VerticalAlignment="Top" Width="89" />
            <TextBox Height="72" HorizontalAlignment="Left" Margin="117,59,0,0" Name="txtPrenom"  VerticalAlignment="Top" Width="231" Text="{Binding prenom, Mode=TwoWay}" />
            <TextBlock Height="30" HorizontalAlignment="Left" Margin="6,141,0,0" Name="textBlock3" Text="Téléphone*" VerticalAlignment="Top" />
            <TextBox Height="72" HorizontalAlignment="Left" Margin="117,124,0,0" Name="txtTel"  VerticalAlignment="Top" Width="231"  InputScope="TelephoneNumber" Text="{Binding  tel, NotifyOnValidationError=True,
                Mode=TwoWay,ValidatesOnExceptions =True }" />

            <TextBlock Height="30" HorizontalAlignment="Left" Margin="9,212,0,0" Name="textBlock4" Text="mail*" VerticalAlignment="Top" />
            <TextBox Height="75" HorizontalAlignment="Left" Margin="117,192,0,0" Name="txtMail" VerticalAlignment="Top" Width="231" Text="{Binding  mail,NotifyOnValidationError=True,
                Mode=TwoWay,ValidatesOnExceptions =True }"  />


            <Button Content="Envoyer" Height="72" HorizontalAlignment="Left" Margin="142,253,0,0" Name="btnEnvoyer" VerticalAlignment="Top" Width="160" Click="btnEnvoyer_Click" />


        </Grid>
        <ListBox Grid.Row="1" Height="76" HorizontalAlignment="Left" Margin="12,334,0,0" Name="listBoxErreur" VerticalAlignment="Top" Width="456" 
                 Foreground="Red" FontWeight="Bold" DisplayMemberPath="ErrorContent"/>
        <StackPanel Height="206" HorizontalAlignment="Left" Margin="12,416,0,0" Name="stPanelUser" VerticalAlignment="Top" Width="456" Grid.Row="1">
            <TextBlock Height="30" Name="textBlock5" Text="Merci pour votre inscription" HorizontalAlignment="Center" />
            <TextBlock Height="30" Name="txt" HorizontalAlignment="Left" Text="Votre nom d'utilisateur est : " Width="276" />
            <TextBlock Height="56" Name="txtUser"  Width="136"  FontSize="30" Foreground="Red" Text="{Binding user, Mode=TwoWay}"/>
            <TextBlock Height="30" Name="textBlock7" Text="Votre mot de passe est :" />
            <TextBlock Height="57" Name="txtMdp"  Width="139" Foreground="Red"  FontSize="30" Text="{Binding mdp, Mode=TwoWay}"/>
        </StackPanel>

    </Grid>

  

</phone:PhoneApplicationPage>
