<mah:MetroWindow x:Class="ZKuP.AddCardUser"
        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:mah="http://metro.mahapps.com/winfx/xaml/controls"
        xmlns:local="clr-namespace:ZKuP"
        mc:Ignorable="d"
        Title="Kartenbenutzer" MinHeight="450" Height="450" Width="594" Loaded="Window_Loaded" LocationChanged="Window_LocationChanged">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition Height="0.3*"/>
            <RowDefinition Height="0.7*"/>
        </Grid.RowDefinitions>
        <TextBlock Margin="10,10,10,0" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" TextWrapping="Wrap" Text="Kartennummer*" VerticalAlignment="Top"/>
        <TextBox x:Name="tbNummer" Margin="10,0,10,10" TextWrapping="Wrap" Height="23" VerticalAlignment="Bottom"/>
        <TextBlock Margin="10,10,10,0" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" Grid.Row="1" TextWrapping="Wrap" Text="Farbe*" VerticalAlignment="Top"/>
        <ComboBox x:Name="cbColor" Margin="10,0,10,10" Grid.Row="1" Height="22" VerticalAlignment="Bottom" SelectedIndex="0"/>
        <TextBlock HorizontalAlignment="Left" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" Margin="10,10,0,0" Grid.Row="2" TextWrapping="Wrap" Text="Person*" VerticalAlignment="Top" Width="226"/>
        <ComboBox x:Name="tbUser" Margin="10,0,10,10" Grid.Row="2" Height="23" VerticalAlignment="Bottom" IsEditable="True"/>
        <TextBlock x:Name="lblFirma" HorizontalAlignment="Left" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" Margin="10,10,0,0" Grid.Row="3" TextWrapping="Wrap" Text="Firma*" VerticalAlignment="Top" Width="226"/>
        <TextBox x:Name="tbFirma" Margin="10,0,10,10" Grid.Row="3" TextWrapping="Wrap" Height="23" VerticalAlignment="Bottom" MaxLength="254"/>
        <TextBlock x:Name="lblTelnr" Margin="10,10,10,0" Grid.Row="4" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" TextWrapping="Wrap" Text="Telefonnummer*" VerticalAlignment="Top"/>
        <ComboBox x:Name="tbTelnr" Height="23" Margin="10,0,10,10" Grid.Row="4" IsEditable="True" VerticalAlignment="Bottom"/>

        <TextBlock Text="* Pflichtfelder" Grid.Row="5" Margin="20,0" Foreground="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>

        <Button x:Name="btnAdd" Content="Hinzufügen" Margin="10,0,10,10" Grid.Row="6" Padding="-2" Height="25" VerticalAlignment="Bottom" Click="btnAdd_Click"/>
    </Grid>
</mah:MetroWindow>
