<Window x:Class="ReAct_PME.GenererCV"
        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="Générer un CV" Height="300" Width="800" MinHeight="300" MinWidth="800"  Background="#FFF0F0F0">
    <Window.Resources>
        <DropShadowEffect x:Key="ShadowEffect"
                  BlurRadius="8"
                  ShadowDepth="2"
                  Opacity="0.4"
                  Direction="270"/>
    </Window.Resources>
    <Grid>
        <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="Fichier CV :" FontWeight="Bold" Margin="10,34,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="135" Height="24"/>
        <TextBox x:Name="DossierCVBox"  Text="{Binding FullnameCV, Mode=TwoWay}" TextWrapping="Wrap" AcceptsReturn="True" VerticalAlignment="Top" VerticalScrollBarVisibility="Auto" Margin="150,34,50,0" Height="24"/>
        <Button x:Name="BtnChangeFileCV" Content="..." Style="{DynamicResource ButtonStyle}"  HorizontalAlignment="Right" Margin="0,34,10,0" VerticalAlignment="Top" Height="25" Width="30" Click="BtnChangeFile_CV_Click" ToolTip="Changer de CV" />

        <TextBlock Text="Template CV :" FontWeight="Bold" Margin="10,70,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="135" Height="24"/>
        <TextBox x:Name="FichierTemplateCVBox"  Text="{Binding FullnameTemplateCV, Mode=TwoWay}" TextWrapping="Wrap" AcceptsReturn="True" VerticalAlignment="Top" VerticalScrollBarVisibility="Auto" Margin="150,70,50,0" Height="24"/>
        <Button x:Name="BtnChangeFileTemplate" Content="..." Style="{DynamicResource ButtonStyle}"  HorizontalAlignment="Right" Margin="0,70,10,0" VerticalAlignment="Top" Height="25" Width="30" Click="BtnChangeFile_Template_Click" ToolTip="Changer de modèle de CV" />

        <TextBlock Text="Dossier nouveaux CV :" FontWeight="Bold" Margin="10,104,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="135" Height="24"/>
        <TextBox x:Name="DossierOutputBox"  Text="{Binding FullPathOutput, Mode=TwoWay}" TextWrapping="Wrap" AcceptsReturn="True" VerticalAlignment="Top" VerticalScrollBarVisibility="Auto" Margin="150,104,50,0" Height="24"/>
        <Button x:Name="BtnDirectoryOutput" Content="..." Style="{DynamicResource ButtonStyle}"  HorizontalAlignment="Right" Margin="0,104,10,0" VerticalAlignment="Top" Height="25" Width="30" Click="BtnChangeDirectory_Output_Click" ToolTip="Changer de dossier d'export" />

        <TextBlock Text="Titre du CV :" FontWeight="Bold" Margin="10,138,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="135" Height="24"/>
        <TextBox x:Name="TitreCVBox"  Text="{Binding TitreCV, Mode=TwoWay}" TextWrapping="Wrap" AcceptsReturn="True" VerticalAlignment="Top" VerticalScrollBarVisibility="Auto" Margin="150,138,50,0" Height="24"/>

        <TextBlock Text="Nbr compétences max:" FontWeight="Bold" Margin="10,172,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="135" Height="24"/>
        <TextBox x:Name="NbrCompetencesBox"  Text="{Binding NbrCompetencesMax, Mode=TwoWay}" TextWrapping="Wrap" AcceptsReturn="True" VerticalAlignment="Top" VerticalScrollBarVisibility="Auto" Margin="150,172,524,0" Height="24"
                                 PreviewTextInput="NumericOnly_PreviewTextInput"
                                 TextChanged="IntTextBox_TextChanged"
                                 PreviewKeyDown="NumericOnly_PreviewKeyDown" />
        <CheckBox IsChecked="{Binding IsCVAnonyme}" Content="CV Anonyme ?" FontWeight="Bold" Style="{DynamicResource SimpleCheckBox}" Margin="300,172,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="135" Height="24"/>



        <Button x:Name="BtnGenerer" Content="Générer le CV" Style="{DynamicResource ButtonStyle}"  HorizontalAlignment="Right" Margin="0,0,10,10" VerticalAlignment="Bottom" Height="29" Width="90" Click="BtnGenerer_Click" />
        <TextBlock x:Name="TxtMessage" Text="..." FontWeight="Bold" Margin="10,0,0,15" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="479" Height="24"/>
        <CheckBox IsChecked="{Binding IsUsingIA}" Content="Utiliser l'IA ?" FontWeight="Bold" Style="{DynamicResource SimpleCheckBox}" Margin="460,172,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="135" Height="24"/>

    </Grid>
</Window>
