<Window x:Class="Khd.Core.Wpf.TaskForm.RawMessageShow"
        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:Khd.Core.Wpf.TaskForm"
        mc:Ignorable="d"
        Background="#333333"
        Loaded="Window_Loaded"
        Height="450" Width="800" >
    <Grid>
        <DataGrid Background="#333333" AutoGenerateColumns="False">
            <DataGrid.Columns>
                <DataGridTextColumn Header="料箱号" Width="*" Binding="{Binding palletInfoCode}" Foreground="White" />
                <DataGridTextColumn Header="物料Id" Width="*" Binding="{Binding materialId}" Foreground="White" />
                <DataGridTextColumn Header="物料名称" Width="*" Binding="{Binding materialName}" Foreground="White" />
                <DataGridTextColumn Header="物料规格" Width="*"  Binding="{Binding materialSpec}" Foreground="White" />
                <DataGridTextColumn Header="总数" Width="*" Binding="{Binding totalAmount}" Foreground="White" />
                <DataGridTextColumn Header="冻结数量" Width="*"  Binding="{Binding frozenAmount}" Foreground="White" />
            </DataGrid.Columns>
            <DataGrid.CellStyle>
                <Style TargetType="{x:Type DataGridCell}">
                    <Setter Property="Foreground" Value="White" />
                    <Setter Property="HorizontalContentAlignment" Value="Center" />
                </Style>

            </DataGrid.CellStyle>
            <DataGrid.RowStyle>
                <Style TargetType="{x:Type DataGridRow}">
                    <Setter Property="Foreground" Value="White" />
                </Style>
            </DataGrid.RowStyle>
            <DataGrid.RowHeaderStyle>
                <Style TargetType="{x:Type DataGridRowHeader}">
                    <Setter Property="Foreground" Value="White" />
                    <Setter Property="HorizontalContentAlignment" Value="Center" />
                </Style>
            </DataGrid.RowHeaderStyle>
            <DataGrid.ColumnHeaderStyle>
                <Style TargetType="{x:Type DataGridColumnHeader}">
                    <Setter Property="Foreground" Value="White" />
                    <Setter Property="HorizontalContentAlignment" Value="Center" />
                    <Setter Property="Margin" Value="0,0,0,0" />
                    <Setter Property="BorderThickness" Value="5" />
                    <Setter Property="BorderBrush" Value="#333333" />
                    <Setter Property="FontSize" Value="20" />
                </Style>
            </DataGrid.ColumnHeaderStyle>
        </DataGrid>
    </Grid>
</Window>
