<UserControl
             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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
             xmlns:local="clr-namespace:Aucma.Core.BoxFoam.Views" 
             x:Class="Aucma.Core.BoxFoam.Views.RealTimeInventoryPageView"
             mc:Ignorable="d" Background="#1152AC" 
             d:DesignHeight="450" d:DesignWidth="800">

    <Border Grid.Row="1" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="5,5">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="0.1*"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <WrapPanel Grid.Row="0" Margin="10 5 0 0"  HorizontalAlignment="Left" VerticalAlignment="Center" >
                <Button Content="泡前库" Style="{StaticResource MaterialDesignRaisedButton}"  Width="100" Margin="0 0 5 0" x:Name="PqInventory"  Command="{Binding InventoryOnClickCommand}" CommandParameter="{Binding Name,ElementName=PqInventory}"/>
                <Button Content="泡后库" Style="{StaticResource MaterialDesignRaisedButton}"  Width="100" x:Name="PhInventory"  Command="{Binding InventoryOnClickCommand}" CommandParameter="{Binding Name,ElementName=PhInventory}"/>
            </WrapPanel>
            <StackPanel Grid.Row="1">
                <!--<Border  BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="5,2" x:Name="HeightPanel">-->
                    <ContentControl Content="{Binding InventoryControl}"  />
                <!--</Border>-->
            </StackPanel>
        </Grid>
    </Border>
</UserControl>