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

        <TextBlock Text="Modèle principal :" Grid.Row="0" VerticalAlignment="Center"/>
        <ComboBox Grid.Row="0" Margin="150,0,0,0"
				ItemsSource="{Binding InstalledModels}"
				SelectedValuePath="Name"
				DisplayMemberPath="Name"
				SelectedValue="{Binding Path=SelectedItem.Primary, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
		        />

        <TextBlock Text="Modèle secondaire :" Grid.Row="1" VerticalAlignment="Center"/>
        <ComboBox Grid.Row="1" Margin="150,0,0,0"
				ItemsSource="{Binding InstalledModels}"
				SelectedValuePath="Name"
				DisplayMemberPath="Name"
				SelectedValue="{Binding Path=SelectedItem.Secondary, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
		        IsEditable="True"
                IsReadOnly="False"/>

        <TextBlock Text="Modèle de secours :" Grid.Row="2" VerticalAlignment="Center"/>
        <ComboBox Grid.Row="2" Margin="150,0,0,0"
				ItemsSource="{Binding InstalledModels}"
				SelectedValuePath="Name"
				DisplayMemberPath="Name"
				SelectedValue="{Binding Path=SelectedItem.Fallback, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
		        IsEditable="True"
                IsReadOnly="False"/>

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

        <StackPanel Orientation="Vertical" Grid.Row="4" 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>
