<Window x:Class="ReAct_PME.ParametresLogs"
        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="Parametres Ollama" Height="250" Width="500" Background="#FFF0F0F0">
    <Grid Margin="10,10,10,10">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="60"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <TextBlock Text="Niveau minimal (0 à 3) :" Grid.Row="0" VerticalAlignment="Center"/>
        <TextBox x:Name="IntTextBox" Text="{Binding SelectedItem, Mode=TwoWay}"  Grid.Row="0" Margin="150,5,0,0" MaxLength="1" 
                 PreviewTextInput="NumericOnly_PreviewTextInput"
                 TextChanged="IntTextBox_TextChanged"
                 PreviewKeyDown="NumericOnly_PreviewKeyDown" 
                 ToolTip="Saisir une valeur entre 0 et 3 (0 : Debug ; 1 : Info ; 2 : Warning ; 3 : Error)"/>

        <TextBlock x:Name="Message" Text="..." Grid.Row="1" VerticalAlignment="Center"/>

        <StackPanel Orientation="Vertical" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,0,0">
            <Button 
                Content="Sauvegarder" Width="80" Margin="5" 
                Style="{DynamicResource ButtonStyle}" 
                Click="Button_Click"
                />
            <Button Content="Fermer" Width="80" Margin="5" 
                Style="{DynamicResource ButtonStyle}" 
                Click="Button_Click_1"                
                />
        </StackPanel>
    </Grid>
</Window>
