<Window x:Class="JAMM.Kasse.BillWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Kassen-Bon" Height="600" Width="300">
    <ScrollViewer>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            
            <!-- HEADER -->
            <Border BorderBrush="LightGray" BorderThickness="0, 0, 0, 1" Grid.Row="0">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>            
                    <Label Name="businessNameLabel" Grid.Row="0" HorizontalAlignment="Center" FontSize="24" />
                    <Label Name="businessAddressLabel" Grid.Row="1" HorizontalAlignment="Center" FontSize="16" />
                    <Label Name="billDateLabel" Grid.Row="2" HorizontalAlignment="Center" FontSize="12" />
                </Grid>
            </Border>
            
            <!-- FOOTER -->
            <Border BorderBrush="LightGray" BorderThickness="0, 1, 0, 0" Grid.Row="5">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    <Label Name="businessByeMessageLabel" Grid.Row="0" HorizontalAlignment="Center" FontSize="18" />
                    <Label Name="businessTaxNumberLabel" Grid.Row="1" HorizontalAlignment="Center" FontSize="12" />
                </Grid>
            </Border>
            
            <!-- Endsumme und Steuern-->
            <Label Name="summeLabel" Grid.Row="2" FontSize="20" VerticalAlignment="Bottom" HorizontalAlignment="Center" />
            <Label Name="steuer7Label" Grid.Row="3" FontSize="16" VerticalAlignment="Bottom" HorizontalAlignment="Right" />
            <Label Name="steuer19Label" Grid.Row="4" FontSize="16" VerticalAlignment="Bottom" HorizontalAlignment="Right" />


            <!-- Elementauflistung -->
            <ItemsControl Name="BillView" Grid.Row="1">
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel />
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="50*"></ColumnDefinition>
                                <ColumnDefinition Width="10*"></ColumnDefinition>
                                <ColumnDefinition Width="20*"></ColumnDefinition>
                                <ColumnDefinition Width="20*"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Label Grid.Column="0" Content="{Binding ProductName}" FontSize="16"/>
                            <Label Grid.Column="1" Content="{Binding Quantity}" FontSize="16"/>
                            <Label Grid.Column="2" Content="{Binding Price}" FontSize="16"/>
                            <Label Grid.Column="3" Content="{Binding SumBill}" FontSize="16"/>
                        </Grid>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
        </Grid>
    </ScrollViewer>
</Window>
