<UserControl x:Class="cosifacile.ordersElement"
             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="500" d:DesignWidth="942" Loaded="UserControl_Loaded">
    <Grid>
        <Grid x:Name="grdElement"  HorizontalAlignment="Left" Height="500" Margin="0,0,0,0" VerticalAlignment="Top" Width="942">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="150" />
                <ColumnDefinition Width="150" />
                <ColumnDefinition Width="150" />
                <ColumnDefinition Width="150" />
                <ColumnDefinition Width="342" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="100" />
                <RowDefinition Height="450" />
            </Grid.RowDefinitions>
            <Border BorderBrush="#b7d0a8" BorderThickness="2,2,0,2" Grid.Column="0">
                <Label x:Name="lblNumero" FontSize="18" VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="Arial Regular">Numero Ordine</Label>
            </Border>
            <Border BorderBrush="#b7d0a8" BorderThickness="2,2,2,2" Grid.Column="1">
                <Label x:Name="lblData" FontSize="18" VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="Arial Regular" Grid.Column="1">Data Ordine</Label>
            </Border>
            <Border BorderBrush="#b7d0a8" BorderThickness="2,2,2,2" Grid.Column="2">
                <Label x:Name="lblOrario" FontSize="18" VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="Arial Regular" Grid.Column="2">Orario di ritiro</Label>
            </Border>
            <Border BorderBrush="#b7d0a8" BorderThickness="2,2,2,2" Grid.Column="3">
                <Label x:Name="lblTotale" FontSize="18" VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="Arial Regular" Grid.Column="3">Totale in €</Label>
            </Border>
            <Border BorderBrush="#b7d0a8" BorderThickness="2,2,2,2" Grid.Column="4">
                <Grid x:Name="grdStato" Background="#4ea245">
                    <TextBlock x:Name="lblStato" FontSize="18" VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="Arial Regular" Grid.Column="4" Foreground="White" Tag="">Stato</TextBlock>
                </Grid>
            </Border>
            <!--<Border BorderBrush="#b7d0a8" BorderThickness="2,2,0,2" Grid.Column="0" Height="100" Grid.Row="1" Grid.ColumnSpan="5">-->
            <Grid x:Name="elementDetails" Grid.Column="0" Height="500" Grid.Row="1" Grid.ColumnSpan="5" Visibility="Visible" VerticalAlignment="Top">
                <Grid x:Name="grdDetails" Width="942" Height="500" VerticalAlignment="Top">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="471" x:Name="colSub" />
                        <ColumnDefinition Width="471" x:Name="colNf"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="100"/>
                    </Grid.RowDefinitions>
                    <Grid x:Name="grdHeadSub" Background="#FFB700" Width="471" Height="100" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" MouseUp="grdHeadSub_MouseUp">
                        <Grid VerticalAlignment="Center" HorizontalAlignment="Center" Width="471" Height="100" >
                            <Label Content="" FontFamily="fontawesome" Grid.Column="0" Foreground="White" FontSize="28" VerticalAlignment="Center" Margin="100,0,0,0"></Label>
                            <Label HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" Content="SOSTITUZIONI" Grid.Column="0" FontFamily="Arial Regular"
                           FontSize="28"/>
                        </Grid>
                    </Grid>
                    <Grid x:Name="grdHeadNf" Background="#5C3800" Width="471" Height="100" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"  MouseUp="grdHeadNf_MouseUp">
                        <Grid VerticalAlignment="Center" HorizontalAlignment="Center" Width="471" Height="100" >
                    <Label Content="" FontFamily="fontawesome" Grid.Column="1" Foreground="White" FontSize="28" VerticalAlignment="Center" Margin="100,0,0,0"></Label>
                    <Label HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" Content="NON TROVATI " Grid.Column="1" FontFamily="Arial Regular"
                           FontSize="28"/>
                        </Grid>
                    </Grid>

                </Grid>
                <Grid Height="700" Width="942" VerticalAlignment="Top" Margin="0,100,0,0" Grid.Row="1" x:Name="nfPanel">

                </Grid>
                <Grid Height="700" Width="942" VerticalAlignment="Top" Margin="0,100,0,0" Grid.Row="1" x:Name="subPanel">

                </Grid>

            </Grid>
            <!--</Border>-->
            
        </Grid>            
    </Grid>
</UserControl>
