<mah:MetroWindow x:Class="ZKuP.CheckParkausweis"
        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="Parkausweise überprüfen" Height="450" MinHeight="300" Width="800" MinWidth="320" Loaded="Window_Loaded" LocationChanged="Window_LocationChanged">
    <Grid>
        <TextBox x:Name="tbSearch" Margin="10,10,250,0" Height="25" Padding="2" VerticalAlignment="Top" PreviewGotKeyboardFocus="tbSearch_PreviewGotKeyboardFocus" PreviewLostKeyboardFocus="tbSearch_PreviewLostKeyboardFocus"/>
        <TextBlock x:Name="lblSearch" Text="Kennzeichen suchen..." Margin="15,12,260,0" Height="25" VerticalAlignment="Top" Foreground="Gray" IsHitTestVisible="False" PreviewKeyDown="lblSearch_PreviewKeyDown"/>
        <Button x:Name="btnSearch" Content="Suchen" Margin="0,10,130,0" Height="25" Padding="-2" VerticalAlignment="Top" HorizontalAlignment="Right" Width="115" Click="btnSearch_Click"/>
        <Button x:Name="btnExport" Content="Exportieren" Margin="0,10,10,0" Height="25" Padding="-2" VerticalAlignment="Top" HorizontalAlignment="Right" Width="115" Click="btnExport_Click"/>
        <DataGrid Margin="10,45,10,10" x:Name="dgCheck" ItemsSource="{Binding .}" CanUserDeleteRows="False" CanUserAddRows="False" CanUserReorderColumns="False" ColumnWidth="*">
            
        </DataGrid>


        <Grid x:Name="gridSpinner" Background="{DynamicResource MahApps.Brushes.Window.Background}" Visibility="Collapsed">
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <local:ucSpinnerPiston RenderTransformOrigin="0.5,0.5" Grid.Row="1">
                <local:ucSpinnerPiston.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="3" ScaleY="3"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </local:ucSpinnerPiston.RenderTransform>
            </local:ucSpinnerPiston>
            <TextBlock Grid.Row="2" Text="Excel Export wird geladen, bitte warten..." FontSize="16" HorizontalAlignment="Center" Foreground="{DynamicResource MahApps.Brushes.Text}"/>
        </Grid>

    </Grid>
</mah:MetroWindow>
