<UserControl x:Class="HistoryView.Views.Dialogs.ConfigFileComparision"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:HistoryView.Views.Dialogs"
             xmlns:Config="clr-namespace:HistoryView.Controls.Configs"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800">
    <Grid Width="860" Height="640">

        <Grid Margin="16">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="8"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>

            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition Width="16"/>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="16"/>
                    <ColumnDefinition Width="auto"/>
                </Grid.ColumnDefinitions>
                <StackPanel Orientation="Horizontal">
                    <TextBlock VerticalAlignment="Center" Text="{DynamicResource ComparisionSource}"/>
                    <ComboBox VerticalAlignment="Center" Margin="16,0" ItemsSource="{Binding ConfigFiles}" DisplayMemberPath="ConfigName" SelectedItem="{Binding Source}" Width="140"/>
                </StackPanel>

                <StackPanel Grid.Column="2" Orientation="Horizontal">
                    <TextBlock VerticalAlignment="Center" Text="{DynamicResource ComparisionTarget}"/>
                    <ComboBox VerticalAlignment="Center" Margin="16,0" ItemsSource="{Binding ConfigFiles}" DisplayMemberPath="ConfigName" SelectedItem="{Binding Target}" Width="140"/>
                </StackPanel>
                <Button Grid.Column="10" Style="{StaticResource FunctionButton}" Command="{Binding ExitCommand}" Width="120" Height="24" Content="{DynamicResource Exit}"/>
            </Grid>

            <Border Grid.Row="2" BorderBrush="{StaticResource DarkBorderColor}" BorderThickness="1">
                <Config:TempConfigComparision Source="{Binding Source}" Target="{Binding Target}"/>
            </Border>

        </Grid>
    </Grid>
</UserControl>
