<Window x:Class="Pos.SaleOfDay"
        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:Pos"
        mc:Ignorable="d"
        Title="Dagens salg" Height="600" Width="350" Icon="Icons/cashier.png">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="2*" />
            <ColumnDefinition Width="4*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <DatePicker Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2"  Name="StartDatePicker" FirstDayOfWeek="Monday" IsTodayHighlighted="True" SelectedDateChanged="StartDatePicker_SelectedDateChanged"/>
        <Label Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2" Name="TotalSale" Style="{StaticResource BoldLabelNoMargin}"/>
        <DataGrid Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" Name="GridSaleDetail" AutoGenerateColumns="False" GridLinesVisibility="None" HeadersVisibility="None" CanUserAddRows="False" BorderThickness="0" Style="{StaticResource StandardBigText}">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=Category }">
                    <DataGridTextColumn.ElementStyle>
                        <Style>
                            <Setter Property="TextBlock.Margin" Value="4,0,0,0"></Setter>
                        </Style>
                    </DataGridTextColumn.ElementStyle>
                </DataGridTextColumn>
                <DataGridTextColumn Binding="{Binding Path=SaleString}">
                    <DataGridTextColumn.ElementStyle>
                        <Style>
                            <Setter Property="TextBlock.TextAlignment" Value="Right" />
                            <Setter Property="TextBlock.Margin" Value="10,0,0,0"></Setter>
                        </Style>
                    </DataGridTextColumn.ElementStyle>
                </DataGridTextColumn>
            </DataGrid.Columns>
        </DataGrid>
        <Button Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="2" Style="{StaticResource Buttons}" Click="PrintSale_OnClick">Print salg</Button>
    </Grid>
</Window>
