MarkingMonitor.xaml
5.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<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>