<Window x:Class="ReAct_PME._ModalGenerateAgain"
        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="Nouvelle génération" Height="510" Width="800" Background="#FFF0F0F0">
    <Grid Margin="5,5,5,5">
        <Grid.RowDefinitions>
            <RowDefinition Height="150"/>
            <RowDefinition Height="100"/>
            <RowDefinition Height="150"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>

        <TextBlock Text="Réponse initiale :" Grid.Row="0" VerticalAlignment="Top" Margin="5,0,0,0"/>
        <TextBox Text="{Binding ReponseOld, Mode=TwoWay}"  Grid.Row="0" Margin="200,0,5,2" IsReadOnly="True"
                 TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Auto"/>

        <TextBlock Text="Expliquez votre demande :" Grid.Row="1" VerticalAlignment="Top" Margin="5,0,0,0"/>
        <TextBox Text="{Binding RaisonNewGenerate, Mode=TwoWay}"  Grid.Row="1" Margin="200,0,5,2" IsReadOnly="false"
                 TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Auto"/>

        <TextBlock Text="Nouvelle réponse :" Grid.Row="2" VerticalAlignment="Top" Margin="5,0,0,0"/>
        <TextBox Text="{Binding ReponseNew, Mode=TwoWay}"  Grid.Row="2" Margin="200,0,5,2" IsReadOnly="false"
                 TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Auto"/>

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

        <Button x:Name="BtnValide" Grid.Row="4" Content="Valider" Click="OnValide_Click" Width="146" Margin="0,0,5,0" HorizontalAlignment="Right" IsEnabled="False" Style="{DynamicResource ButtonStyle}"/>
        <Button x:Name="BtnCancel" Grid.Row="4" Content="Annuler" Click="OnCancel_Click" Width="146" Margin="0,0,160,0" HorizontalAlignment="Right" Style="{DynamicResource ButtonStyle}"/>
        <Button x:Name="BtnGenerateAgain" Grid.Row="4" Content="Re-Générer la réponse" Click="OnReGenerate_Click" Width="146" Margin="0,0,315,0" HorizontalAlignment="Right" Style="{DynamicResource ButtonStyle}"/>
    </Grid>
</Window>
