<Window x:Class="ReAct_PME.DetailEmailContentPJ"
        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="Résumé des pièces jointes" Height="450" Width="900">
    
    <Grid Margin="10,10,10,10">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>

        <TextBlock Text="De : "    Width="30" FontWeight="Bold" Grid.Row="0" Margin="0,0,0,0"    HorizontalAlignment="Left" />
        <TextBlock Text="Le : "    Width="30" FontWeight="Bold" Grid.Row="0" Margin="230,0,0,0"  HorizontalAlignment="Left" />
        <TextBlock Text="Sujet : " Width="50" FontWeight="Bold" Grid.Row="0" Margin="370,0,0,0"  HorizontalAlignment="Left" />

        <TextBlock Text="{Binding SelectedItem.From, Mode=OneWay}"    Width="200" Grid.Row="0" Margin="30,0,0,0"   HorizontalAlignment="Left" />
        <TextBlock Text="{Binding SelectedItem.DateSTR, Mode=OneWay}" Width="150" Grid.Row="0" Margin="260,0,0,0" HorizontalAlignment="Left"/>
        <TextBlock Text="{Binding SelectedItem.Subject, Mode=OneWay}" Grid.Row="0" Margin="410,0,0,0" HorizontalAlignment="Left"/>

        <TextBlock Text="Résumé des PJ :" FontWeight="Bold" Grid.Row="1"/>
        <TextBox x:Name="EmailContentBox" Text="{Binding SelectedItem.ContentPJ_STR, Mode=OneWay}" TextWrapping="Wrap" AcceptsReturn="True" IsReadOnly="True" Grid.Row="2" VerticalScrollBarVisibility="Auto"/>
        <Button Style="{DynamicResource ButtonStyle}" Content="Fermer" Click="OnFermerClick" Width="146" Margin="0,0,0,0" Height="30" Grid.Row="3" HorizontalAlignment="Right"/>
    </Grid>
</Window>
