<pi:UserControlBase x:Class="智慧物流软件系统.HomeView"
             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" 
             xmlns:local="clr-namespace:智慧物流软件系统"
             xmlns:controls="clr-namespace:智慧物流软件系统.Views.Controls"
             mc:Ignorable="d" 
             xmlns:hc="https://handyorg.github.io/handycontrol"
             xmlns:pi="https://github.com/ping9719/wpfex"
             d:DesignHeight="737" d:DesignWidth="1192" LoadedVisibleFirst="loadFir"  IsVisibleChanged="vis">
    <Border Margin="0" Background="AliceBlue" CornerRadius="3" Padding="0">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="2*"/>
                <RowDefinition Height="*"/>

            </Grid.RowDefinitions>
            <!--内容区-->
            <!--货架状态显示区-->
            <Border Grid.Row="0" Margin="5,5,5,0" BorderThickness="1" Background="White" BorderBrush="DodgerBlue" CornerRadius="3">
                <hc:ScrollViewer IsInertiaEnabled="True" hc:ScrollViewerAttach.AutoHide="False">
                    <WrapPanel Name="shelfsWrapPanel">
                    </WrapPanel>
                </hc:ScrollViewer>
            </Border>
            <!--消息区-->
            <Border Grid.Row="1" Margin="5" Height="auto" BorderThickness="1" Background="White" BorderBrush="DodgerBlue" CornerRadius="3">
                <GroupBox Grid.Column="1" Background="White" Padding="0" Style="{StaticResource GroupBoxTab}"  >
                    <GroupBox.Header>
                        <Grid Width="{Binding ActualWidth,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type GroupBox}}}">
                            <TextBlock Margin="5,0" HorizontalAlignment="Left" VerticalAlignment="Center">日志</TextBlock>
                            <Button Grid.Row="2" Command="{Binding SelfCheckCommand}" Background="AliceBlue"  Content="手 动 自 检" ></Button>
                            <Button HorizontalAlignment="Right" Height="25" Margin="10,0" Padding="10,0" FontFamily="{StaticResource IconFont}" Command="{Binding ClearTextInfoCommand}">&#xe652; 清空</Button>
                        </Grid>
                    </GroupBox.Header>
                    <pi:TextBoxLog Token="selfCheck" Style="{StaticResource TextBoxExtend.Multi}" Margin="-1" hc:InfoElement.Placeholder="没有日志信息" Foreground="CornflowerBlue"></pi:TextBoxLog>
                </GroupBox>
            </Border>
          
        </Grid>
    </Border>
</pi:UserControlBase>
