<Window x:Class="ReAct_PME.RechercheCVDetail"
        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="RechercheCVDetail" Height="450" Width="800">
    <Window.Resources>
        <DropShadowEffect x:Key="ShadowEffect"
                  BlurRadius="8"
                  ShadowDepth="2"
                  Opacity="0.4"
                  Direction="270"/>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <Popup x:Name="ToastPopup"
               Placement="Bottom"
               PlacementTarget="{Binding ElementName=MainGrid}" 
               StaysOpen="False"
               AllowsTransparency="True"
               PopupAnimation="Fade"
               HorizontalOffset="0"
               VerticalOffset="-30">

            <Border Background="#FF323232"
                        CornerRadius="8"
                        Padding="16"
                        Margin="10"
                        Effect="{DynamicResource ShadowEffect}">
                <TextBlock x:Name="ToastMessage"
                               Foreground="White"
                               FontWeight="Bold"
                               FontSize="14"
                               TextWrapping="Wrap"
                               MaxWidth="300"/>
            </Border>
        </Popup>
        <TextBlock Text="CV : "    Width="30" FontWeight="Bold" Grid.Row="0" HorizontalAlignment="Left" Margin="5,5,5,5"/>
        <TextBlock Text="{Binding SelectedItem.FichierCV, Mode=OneWay}" Grid.Row="0" HorizontalAlignment="Left" Margin="30,5,5,5" />

        <TextBlock Text="Avis :" FontWeight="Bold" Grid.Row="1" Margin="5,5,5,5"/>
        <TextBox x:Name="EmailContentBox" Text="{Binding SelectedItem.Avis, Mode=OneWay}" TextWrapping="Wrap" AcceptsReturn="True" IsReadOnly="True" Grid.Row="2" VerticalScrollBarVisibility="Auto" Margin="5,5,5,5"/>
        
        <Button Style="{DynamicResource ButtonStyle}" Content="Fermer" Click="OnFermerClick" Width="146" Margin="5,5,5,5" Height="30" Grid.Row="2" HorizontalAlignment="Right" Grid.RowSpan="2" VerticalAlignment="Bottom"/>

    </Grid>
</Window>
