MarkingMonitor.xaml 5.83 KB
<UserControl x:Class="HHECS.WinCommon.Controls.MarkingMonitor"
             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" >
        <!--<Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="30" ></RowDefinition>
            <RowDefinition Height="5"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>-->
        <StackPanel  Grid.Row="0"  Grid.Column="0" Orientation="Vertical" HorizontalAlignment="Center" Margin="15">

            <StackPanel  Grid.Row="0"  Grid.Column="0"  HorizontalAlignment="Center" Margin="15" x:Name="stp_line01" Visibility="Collapsed">
                <Label >A线中2喷墨机连接状态:</Label>
                <Border  x:Name="bor_line01" Height="10" Width="10" Background="Gray"  CornerRadius="5"/>
            </StackPanel>
            <StackPanel    Grid.Row="0"  Grid.Column="1"  HorizontalAlignment="Center" Margin="15" x:Name="stp_line02" Visibility="Collapsed">
                <Label >A线中2除锈连接状态:</Label>
                <Border   x:Name="bor_line02" Height="10" Width="10" Background="Gray" CornerRadius="5"/>
            </StackPanel>
            <StackPanel   Grid.Row="1"  Grid.Column="0" HorizontalAlignment="Center" Margin="15" x:Name="stp_line03" Visibility="Collapsed">
                <Label >线体三打标机连接状态:</Label>
                <Border  x:Name="bor_line03" Height="10" Width="10" Background="Gray"    CornerRadius="5"/>
            </StackPanel>
            <StackPanel  Grid.Row="1"  Grid.Column="1" HorizontalAlignment="Center" Margin="15" x:Name="stp_line04" Visibility="Collapsed">
                <Label >线体四打标机连接状态:</Label>
                <Border  x:Name="bor_line04" Height="10" Width="10" Background="Gray"    CornerRadius="5"/>
            </StackPanel>

            <StackPanel  Grid.Row="0"  Grid.Column="0"  HorizontalAlignment="Center" Margin="15" x:Name="stp_freeline01" Visibility="Collapsed">
                <Label >A线中2喷墨机是否空闲:</Label>
                <Border  x:Name="bor_freeline01" Height="10" Width="10" Background="Gray"  CornerRadius="5"/>
            </StackPanel>
            <StackPanel    Grid.Row="0"  Grid.Column="1"  HorizontalAlignment="Center" Margin="15" x:Name="stp_freeline02" Visibility="Collapsed">
                <Label >A经中2除锈是否空闲:</Label>
                <Border   x:Name="bor_freeline02" Height="10" Width="10" Background="Gray" CornerRadius="5"/>
            </StackPanel>
            <StackPanel   Grid.Row="1"  Grid.Column="0" HorizontalAlignment="Center" Margin="15" x:Name="stp_freeline03" Visibility="Collapsed">
                <Label >线体三打标机是否空闲:</Label>
                <Border  x:Name="bor_freeline03" Height="10" Width="10" Background="Gray"    CornerRadius="5"/>
            </StackPanel>
            <StackPanel  Grid.Row="1"  Grid.Column="1" HorizontalAlignment="Center" Margin="15" x:Name="stp_freeline04" Visibility="Collapsed">
                <Label >线体四打标机是否空闲:</Label>
                <Border  x:Name="bor_freeline04" Height="10" Width="10" Background="Gray"    CornerRadius="5"/>
            </StackPanel>
        </StackPanel>
        <!--<DockPanel Grid.Column="0" Grid.Row="2" Background="White" Grid.ColumnSpan="2"></DockPanel>
        <DockPanel Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2">
            <ListBox  x:Name="list_log"   >
                <TextBlock FontSize="10" Text="消息日志:"/>
            </ListBox>
        </DockPanel>-->

    </Grid>
</UserControl>