<Window x:Class="ReAct_PME.ParametresCheckEmails"
        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="Parametres Check Emails au démarrage" Height="250" Width="500" Background="#FFF0F0F0">
    <Grid Margin="10,10,10,10">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="60"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <TextBlock Text="Check mails non lus au démarrage (0 : Non ou 1 : Oui)" Grid.Row="0" VerticalAlignment="Center"/>
        <TextBox x:Name="IntTextBoxInbox" Text="{Binding SelectedItemInbox, Mode=TwoWay}"  Grid.Row="0" 
                 Margin="300,5,0,0" MaxLength="1" 
                 PreviewTextInput="NumericOnly_PreviewTextInput"
                 TextChanged="IntTextBoxInbox_TextChanged"
                 PreviewKeyDown="NumericOnly_PreviewKeyDown" 
                 ToolTip="Saisir une valeur 0 ou 1 (0 : Non ; 1 : Oui)"/>

        <TextBlock Text="Check mails envoyé pour suivi (0 : Non ou 1 : Oui)" Grid.Row="1" VerticalAlignment="Center"/>
        <TextBox x:Name="IntTextBoxSent" Text="{Binding SelectedItemSent, Mode=TwoWay}"  Grid.Row="1" 
                 Margin="300,5,0,0" MaxLength="1" 
                 PreviewTextInput="NumericOnly_PreviewTextInput"
                 TextChanged="IntTextBoxSent_TextChanged"
                 PreviewKeyDown="NumericOnly_PreviewKeyDown" 
                 ToolTip="Saisir une valeur 0 ou 1 (0 : Non ; 1 : Oui)"/>

        <TextBlock x:Name="Message" Text="..." Grid.Row="2" VerticalAlignment="Center"/>

        <StackPanel Orientation="Vertical" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,0,0">
            <Button 
                Content="Sauvegarder" Width="80" Margin="5" 
                Style="{DynamicResource ButtonStyle}" 
                Click="Button_Click"
                />
            <Button Content="Fermer" Width="80" Margin="5" 
                Style="{DynamicResource ButtonStyle}" 
                Click="Button_Click_1"                
                />
        </StackPanel>
    </Grid>
</Window>