<Window x:Class="Gremlin.GremlinUI.DataImport"
        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:Gremlin.GremlinUI"
        mc:Ignorable="d"
        Title="DataImport" Height="220" Width="500" MinHeight="220" MaxHeight="300" MinWidth="350">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="15"/>
        </Grid.RowDefinitions>
        <Label x:Name="lblSource" Grid.Row="0"
               Content="Bitte Datenquelle auswählen" 
               Padding="20 0 0 0"
               VerticalContentAlignment="Center" 
               HorizontalContentAlignment="Center" 
               FontSize="14" 
               VerticalAlignment="Top" FontWeight="Bold" />
        <Grid Grid.Row="1" Height="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="3*" MinWidth="150"/>
                <ColumnDefinition Width="50"/>
            </Grid.ColumnDefinitions>
            <StackPanel x:Name="Fields" Grid.Column="0" Orientation="Vertical" MinHeight="120" HorizontalAlignment="Center">
                <TextBlock x:Name="lblDataSource" Text="Datenquelle" TextAlignment="Left" Padding="10 4 10 4" Margin="0 4 0 5"/>
                <TextBlock x:Name="lblDataEncoding" Text="Encoding" TextAlignment="Left" Padding="10 4 10 4" Margin="0 3 0 5"/>
                <TextBlock x:Name="lblDataSeparator" Text="Trennzeichen" TextAlignment="Left" Padding="10 4 10 4" Margin="0 3 0 3"/>
            </StackPanel>
            <StackPanel x:Name="Data" Grid.Column="1" Orientation="Vertical">
                <TextBox x:Name="tbDataSource" Text="" MouseDoubleClick="tbDataSource_MouseDoubleClick" Padding="10 4 10 4" TextWrapping="Wrap" Margin="0 3 0 3"/>
                <TextBox x:Name="tbEncoding" Text="" Padding="10 4 10 4" Margin="0 3 0 3"/>
                <TextBox x:Name="tbSeparator" Text="" Padding="10 4 10 4" Margin="0 3 0 3"/>
            </StackPanel>
            <StackPanel x:Name="ButtonsRight" Grid.Column="2" Orientation="Vertical" HorizontalAlignment="Stretch">
                <Button x:Name="btnOpenFile" Content="..."  Click="btnOpenFile_Click" Grid.Column="2" Height="22" Margin="3 5 5 5"></Button>
                <Button x:Name="btnGetEncoding" Content="Auto"  Click="btnGetEncoding_Click" Grid.Column="2" Height="22"  Margin="3 6 5 5"></Button>
                <Button x:Name="btnGetSeparator" Content="Auto"  Click="btnGetSeparator_Click" Grid.Column="2" Height="22"  Margin="3 4 5 0"></Button>
            </StackPanel>
        </Grid>
        <StackPanel x:Name="Buttons" Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button x:Name="btnOK" Content="Import starten" Click="btnOK_Click"  Margin="15 0 15 0" Padding="20 0 20 0" Height="30" Width="120"/>
            <Button x:Name="btnCancel" Content="Abbrechen" IsCancel="True" Click="btnCancel_Click" Margin="15 0 15 0" Padding="20 0 20 0" Height="30" Width="120"/>
        </StackPanel>
    </Grid>
</Window>
