135 lines
9.0 KiB
XML
135 lines
9.0 KiB
XML
<UserControl x:Class="Views.StandWindow"
|
|
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:Views"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="1080" d:DesignWidth="1600">
|
|
<Grid>
|
|
<GroupBox Header="看台信息">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition ></ColumnDefinition>
|
|
<ColumnDefinition ></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="60*"></RowDefinition>
|
|
<RowDefinition Height="40*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.ColumnSpan="2">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Label Style="{DynamicResource Mylabel1}" Grid.ColumnSpan="3" DataContext="{Binding MyPLC.PLC}" Content="{Binding PlcStatus.StatuInfo}" Background="{Binding PlcStatus.StatusBackground}" Margin="2"></Label>
|
|
<Label Style="{DynamicResource Mylabel1}" Grid.Row="1" Grid.ColumnSpan="3" Margin="2" DataContext="{Binding ShowStatu}" Background="{Binding StatusBackground}" Content="{Binding StatuInfo}" ></Label>
|
|
<Label Style="{DynamicResource Mylabel1}" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Content="{Binding Door}" Foreground="White"></Label>
|
|
<Button Style="{DynamicResource commBtn}" Grid.Row="2" Grid.Column="0" Background="{Binding ElementName=GBST,Path=BorderBrush}" FontFamily="楷体" FontSize="50" Margin="1" Command="{Binding OpenDoor}" FontWeight="Bold" >
|
|
<Viewbox>
|
|
<ContentControl Content="开关锁" ></ContentControl>
|
|
</Viewbox>
|
|
</Button>
|
|
<Label Style="{DynamicResource Mylabel1}" Grid.Row="3" Content="实时温度:" Foreground="White"></Label>
|
|
<Label Style="{DynamicResource Mylabel1}" DataContext="{Binding CurrHeatShow}" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" Content="{Binding StatuValue}" Foreground="{Binding StatusForeground}"></Label>
|
|
<Label Style="{DynamicResource Mylabel1}" Grid.Row="4" Content="测试时间:" Foreground="White"></Label>
|
|
<Label Style="{DynamicResource Mylabel1}" DataContext="{Binding RunTimeShow}" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" Content="{Binding StatuInfo}" Foreground="{Binding StatusForeground}"></Label>
|
|
|
|
</Grid>
|
|
</Border>
|
|
<!--<Border Grid.Row="1" Grid.ColumnSpan="2" DataContext="{Binding TodayData}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="20*"></ColumnDefinition>
|
|
<ColumnDefinition Width="30*"></ColumnDefinition>
|
|
<ColumnDefinition Width="20*"></ColumnDefinition>
|
|
<ColumnDefinition Width="30*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Label Foreground="White" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" >
|
|
<Viewbox>
|
|
<ContentControl Content="投入数量:"></ContentControl>
|
|
</Viewbox>
|
|
</Label>
|
|
<Label Grid.Column="1" Foreground="White" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" >
|
|
<Viewbox>
|
|
<ContentControl Content="{Binding Phase1}"></ContentControl>
|
|
</Viewbox>
|
|
</Label>
|
|
<Label Foreground="White" Grid.Row="1" VerticalContentAlignment="Center" HorizontalContentAlignment="Center">
|
|
<Viewbox>
|
|
<ContentControl Content="产出数量:"></ContentControl>
|
|
</Viewbox>
|
|
</Label>
|
|
<Label Grid.Column="1" Grid.Row="1" Foreground="Lime" VerticalContentAlignment="Center" HorizontalContentAlignment="Center">
|
|
<Viewbox>
|
|
<ContentControl Content="{Binding Phase2}"></ContentControl>
|
|
</Viewbox>
|
|
</Label>
|
|
<Label Foreground="White" Grid.Column="2" VerticalContentAlignment="Center" HorizontalContentAlignment="Center">
|
|
<Viewbox>
|
|
<ContentControl Content="高压不良:"></ContentControl>
|
|
</Viewbox>
|
|
</Label>
|
|
<Label Grid.Column="3" Foreground="Red" VerticalContentAlignment="Center" HorizontalContentAlignment="Center">
|
|
<Viewbox>
|
|
<ContentControl Content="{Binding Phase3}"></ContentControl>
|
|
</Viewbox>
|
|
</Label>
|
|
<Label Foreground="White" Grid.Row="1" Grid.Column="2" VerticalContentAlignment="Center" HorizontalContentAlignment="Center">
|
|
<Viewbox>
|
|
<ContentControl Content="电阻不良:"></ContentControl>
|
|
</Viewbox>
|
|
</Label>
|
|
<Label Grid.Row="1" Grid.Column="3" Foreground="Red" VerticalContentAlignment="Center" HorizontalContentAlignment="Center">
|
|
<Viewbox>
|
|
<ContentControl Content="{Binding Phase4}"></ContentControl>
|
|
</Viewbox>
|
|
</Label>
|
|
</Grid>
|
|
</Border>-->
|
|
<Border Grid.Row="1" Grid.ColumnSpan="2">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition></RowDefinition>
|
|
<RowDefinition></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Button Style="{DynamicResource commBtn}" Background="{Binding ElementName=GBST,Path=BorderBrush}" Grid.Row="0" Grid.RowSpan="2" Grid.Column="1" FontFamily="楷体" FontSize="50" Margin="1" Command="{Binding StartCommand}" FontWeight="Bold" >
|
|
<Viewbox>
|
|
<ContentControl Content="启动" ></ContentControl>
|
|
</Viewbox>
|
|
</Button>
|
|
<Button Style="{DynamicResource commBtn}" Background="{Binding ElementName=GBST,Path=BorderBrush}" Grid.Row="0" Grid.Column="0" FontFamily="楷体" FontSize="50" Margin="1" Command="{Binding StopCommand}" FontWeight="Bold">
|
|
<Viewbox>
|
|
<ContentControl Content="暂停" ></ContentControl>
|
|
</Viewbox>
|
|
</Button>
|
|
<Button Style="{DynamicResource commBtn}" Background="{Binding ElementName=GBST,Path=BorderBrush}" Grid.Row="1" FontFamily="楷体" FontSize="50" Margin="1" Command="{Binding ResetSoftCommand}" FontWeight="Bold">
|
|
<Viewbox>
|
|
<ContentControl Content="重置" ></ContentControl>
|
|
</Viewbox>
|
|
</Button>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</GroupBox>
|
|
</Grid>
|
|
</UserControl>
|