<Page x:Class="JAMM.Kasse.Pages.ReportsToday"
      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" 
      mc:Ignorable="d" 
      d:DesignHeight="786" d:DesignWidth="1024"
	Title="Page">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Border Grid.Row="0">
            <Border.Background>
                <SolidColorBrush Color="White"></SolidColorBrush>
            </Border.Background>
        </Border>
        <Border Grid.Row="0" BorderBrush="LightGray" BorderThickness="0, 0, 0, 1">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Label Grid.Row="0" HorizontalAlignment="Center" x:Name="todayHeader" FontSize="24">Heute</Label>
                <Label Grid.Row="1" HorizontalAlignment="Center" x:Name="todaySumme" FontSize="24">Summe</Label>
            </Grid>
        </Border>
        <ItemsControl x:Name="TodayView" Grid.Row="1">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <Border BorderBrush="LightGray" BorderThickness="0, 1, 0, 1">
                        <Grid Margin="10">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
                            <TextBlock Text="{Binding UserName}" Grid.Column="0" VerticalAlignment="Center" FontSize="18"/>
                            <TextBlock Text="{Binding UserVolumeOfSales}" Grid.Column="1" VerticalAlignment="Center" FontSize="18"/>
                        </Grid>
                    </Border>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
    </Grid>
</Page>
