<Window x:Class="ReAct_PME.CapturePhoto"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:ReAct_PME"
        mc:Ignorable="d"
        Title="Capture Webcam" Height="480" Width="640"  Background="#FFF0F0F0">
    <Grid Margin="5,5,5,5">

        <Grid.RowDefinitions>
            <RowDefinition Height="300"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="60"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <Image x:Name="CameraPreview" Stretch="Uniform" Grid.Row="0"/>
        <Label Content="Saisir votre nom :"  Margin="0,0,0,0" Grid.Row="1"/>
        <TextBox x:Name="TxtNom" Text="..."  Margin="100,5,40,0" Grid.Row="1"/>
        <Button x:Name="CaptureButton" Grid.Row="2"
            Style="{DynamicResource SimpleButton}" 
            Content="Prendre la photo"
            Width="130"
            Margin="243,17,242,10"
            Click="CaptureButton_Click" />
        <Button x:Name="CaptureButton_Copy" Grid.Row="2"
            Style="{DynamicResource SimpleButton}" 
            Content="Entrainer le modèle"
            Width="130"
            Margin="433,17,52,10"
            Click="Training_Click" />
        <Label x:Name="LblMessage" Content="..."  Margin="0,0,0,0" Grid.Row="3"/>

    </Grid>
</Window>
