<UserControl x:Class="SlnMesnac.WPF.Page.TonerBoxingControl"
             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:SlnMesnac.WPF.Page"
             mc:Ignorable="d"
             d:DesignHeight="1080" d:DesignWidth="1920" Background="Transparent" Opacity="1" Loaded="Window_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="0.3*" />
            <RowDefinition Height="1*" />
            <RowDefinition Height="4*" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <StackPanel Height="100" Margin="1,0,0,0" Orientation="Horizontal"  HorizontalAlignment="Left">
                <TextBlock Text="提示信息：" FontSize="35" Foreground="White"></TextBlock>
                <TextBlock Text="{Binding Msg}" FontSize="35" Foreground="White"></TextBlock>
            </StackPanel>
        </Grid>
        <Grid Grid.Row="1">
            <StackPanel  Orientation="Horizontal" HorizontalAlignment="Left" Margin="1,0,0,0" Width="1500" Height="200">
                <TextBlock Text="扫描料框：" FontSize="35" Foreground="White" Height="120" Margin="0 60 0 0 "></TextBlock>
                <TextBox x:Name="InputBoxCodeTxt" Text="{Binding BoxCode,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" FontSize="45" Foreground="White" BorderBrush="White" BorderThickness="1" Width="400" Height="100"></TextBox>
                <Button Command="{Binding ConfirmCommand}" FontSize="35" Foreground="White"
Width="250" Height="100"   Margin="150 0 0 0"
Content="清空" ToolTip="返程色粉放入空料箱后点击按钮确认"
IsEnabled="{Binding DataContext.ControlsEnabled, RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}"
Style="{StaticResource MaterialDesignOutlinedSecondaryDarkButton}" />
            </StackPanel>
        </Grid>
        <Button x:Name="ClearTonerButton" Content= "   清空廊桥色粉箱&#x000A;（非特殊情况勿触）" Style="{StaticResource MaterialDesignOutlinedSecondaryDarkButton}" HorizontalAlignment="Left" Margin="1621,0,0,0" Grid.Row="1" VerticalAlignment="Center" Height="42" Width="162" RenderTransformOrigin="1.981,0.514" Click="ClearTonerButton_Click"/>
    </Grid>
</UserControl>