LoadingLocationInfo.xaml 4.05 KB
<UserControl x:Class="HHECS.WinCommon.Controls.LoadingLocationInfo"
             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:HHECS.WinCommon.Controls"
             mc:Ignorable="d" 
             d:DesignHeight="280"  d:DesignWidth="400">
    <UserControl.Resources>
        <Style x:Key="labStyle" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlockStyle}">
            <Setter Property="Foreground" Value="Blue"/>
            <Setter Property="Margin" Value="1,0,1,0"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Left"/>
            <Setter Property="FontSize" Value="13"/>
        </Style>
        <Style x:Key="txtBlockStyle" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseTextBlockStyle}">
            <Setter Property="Foreground" Value="Black"/>
            <Setter Property="Margin" Value="1,0,1,0"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Right"/>
            <Setter Property="FontSize" Value="13"/>
        </Style>
        <Style TargetType="Button"  BasedOn="{StaticResource BaseButtonStyle}">
            <Setter Property="FontSize" Value="13"></Setter>
            <Setter Property="Margin" Value="2,0,0,0"/>
        </Style>
        <Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource {x:Type TextBlock}}">
            <Setter Property="HorizontalAlignment" Value="Center"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="FontSize" Value="20"/>
        </Style>
        <Style TargetType="StackPanel">
            <Setter Property="Orientation" Value="Horizontal"></Setter>
            <Setter Property="HorizontalAlignment" Value="Right"></Setter>
            <Setter Property="VerticalAlignment" Value="Stretch"></Setter>
        </Style>
    </UserControl.Resources>
    <Grid Background="#FFEEEEEE" >

        <StackPanel  Grid.Row="0"  Grid.Column="1" Orientation="Vertical" HorizontalAlignment="Center" Margin="15">
            <StackPanel Grid.Row="0"  Grid.Column="0" Grid.ColumnSpan="4" HorizontalAlignment="Center" VerticalAlignment="Bottom">
                <TextBlock x:Name="txt_LoadingLocationName"  Style="{DynamicResource labStyle}"   Grid.Row="0"  HorizontalAlignment="Center"  FontWeight="Bold" FontSize="18" ><Run Text="组队库位监控"/></TextBlock>
            </StackPanel>
            <StackPanel  Grid.Row="0"  Grid.Column="0"  HorizontalAlignment="Center" Margin="15" x:Name="stp_location01" Visibility="Visible">
                <Label >1号料框状态:</Label>
                <Border  x:Name="bor_location01" Height="10" Width="10" Background="Gray"  CornerRadius="5"/>
            </StackPanel>
            <StackPanel    Grid.Row="0"  Grid.Column="1"  HorizontalAlignment="Center" Margin="15" x:Name="stp_location02" Visibility="Visible">
                <Label >2号料框状态:</Label>
                <Border   x:Name="bor_location02" Height="10" Width="10" Background="Gray" CornerRadius="5"/>
            </StackPanel>
            <StackPanel   Grid.Row="1"  Grid.Column="0" HorizontalAlignment="Center" Margin="15" x:Name="stp_location03" Visibility="Visible">
                <Label >3号料框状态:</Label>
                <Border  x:Name="bor_location03" Height="10" Width="10" Background="Gray"    CornerRadius="5"/>
            </StackPanel>
            <StackPanel  Grid.Row="1"  Grid.Column="1" HorizontalAlignment="Center" Margin="15" x:Name="stp_location04" Visibility="Visible">
                <Label >4号料框状态:</Label>
                <Border  x:Name="bor_location04" Height="10" Width="10" Background="Gray"    CornerRadius="5"/>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>