<Window x:Class="ReAct_PME.DetailEmailSentRelance"
        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="Mail à l'origine de la relance + Relance générée" MinHeight="600" Height="700" MinWidth="600" Width="800" Background="#FFF0F0F0">
    <Grid Margin="10,10,10,10">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="150"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*" MinHeight="150"/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>

        <TextBlock Text="Email original :" FontWeight="Bold" Grid.Row="0" HorizontalAlignment="Left"/>

        <TextBlock Text="Sujet : " Width="50" Grid.Row="3" Margin="0,0,0,0"  HorizontalAlignment="Left" />

        <TextBlock Text="{Binding MessageOrigineRelance.ToSTR, Mode=OneWay}"    Width="200" Grid.Row="1" Margin="0,0,0,0"   HorizontalAlignment="Left" />
        <TextBlock Text="{Binding MessageOrigineRelance.DateSTR, Mode=OneWay}" Width="150" Grid.Row="2" Margin="0,0,0,0" HorizontalAlignment="Left"/>
        <TextBlock Text="{Binding MessageOrigineRelance.Subject, Mode=OneWay}" Grid.Row="3" Margin="40,0,0,0" HorizontalAlignment="Left"/>

        <TextBox x:Name="EmailContentBox" Text="{Binding MessageOrigineRelance.Body, Mode=OneWay}" TextWrapping="Wrap" AcceptsReturn="True" IsReadOnly="True" Grid.Row="4" VerticalScrollBarVisibility="Auto"/>

        <TextBlock Text="Relance générée :" FontWeight="Bold" Margin="0,5,0,0" Grid.Row="5"/>
        <TextBox x:Name="RelanceBox"  Text="{Binding SelectedItem.FollowUpDraft, Mode=TwoWay}" TextWrapping="Wrap" AcceptsReturn="True" Grid.Row="6" VerticalScrollBarVisibility="Auto"/>

        <Button Style="{DynamicResource ButtonStyle}" Content="Re-Générer la réponse" Click="OnGenerateAgainClick" Width="146" Margin="0,0,320,0" Height="30" Grid.Row="7" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>
        <Button Style="{DynamicResource ButtonStyle}" Content="Envoyer la réponse" Click="OnEnvoyerClick" Width="146" Margin="0,0,160,0" Height="30" Grid.Row="7" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>
        <Button Style="{DynamicResource ButtonStyle}" Content="Fermer" Click="OnFermerClick" Width="146" Margin="0,0,0,0" Height="30" Grid.Row="7" HorizontalAlignment="Right"  VerticalAlignment="Bottom"/>

        <TextBlock x:Name="StatusText" Background="AliceBlue" Foreground="Green" Margin="5,5,5,5" Grid.Row="8"/>

    </Grid>
</Window>
