121 lines
5.7 KiB
XML
121 lines
5.7 KiB
XML
<UserControl
|
|
x:Class="FATrace.WPLApp.Views.FootView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:FATrace.WPLApp.Views"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
d:DesignHeight="30"
|
|
d:DesignWidth="1920"
|
|
mc:Ignorable="d">
|
|
<Grid Margin="2,1,2,2" Background="#f6f5ec">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.Resources>
|
|
<Style x:Key="BoardStyle" TargetType="Border">
|
|
<Setter Property="Background" Value="Gray" />
|
|
<Setter Property="CornerRadius" Value="3" />
|
|
<Setter Property="Margin" Value="2,1" />
|
|
<Setter Property="Padding" Value="2" />
|
|
</Style>
|
|
<Style x:Key="StackPanelStyle" TargetType="StackPanel">
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="Orientation" Value="Horizontal" />
|
|
<Setter Property="Margin" Value="10,0" />
|
|
</Style>
|
|
<Style x:Key="TextBlockStyle" TargetType="TextBlock">
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="FontSize" Value="18" />
|
|
</Style>
|
|
<Style x:Key="TextBlockIcon" TargetType="TextBlock">
|
|
<Setter Property="FontFamily" Value="/Assets/Fonts/#iconfont" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="FontSize" Value="18" />
|
|
<Setter Property="Margin" Value="5,0,5,0" />
|
|
</Style>
|
|
</Grid.Resources>
|
|
|
|
<Border>
|
|
<Border.Style>
|
|
<Style BasedOn="{StaticResource BoardStyle}" TargetType="Border">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding SysRunService.SysRunState.RunState}" Value="1">
|
|
<Setter Property="Background" Value="LimeGreen" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Border.Style>
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockIcon}" Text="" />
|
|
<TextBlock Style="{StaticResource TextBlockStyle}" Text="系统状态:" />
|
|
<TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding SysRunService.SysRunState.RunStateMsg}" />
|
|
</StackPanel>
|
|
|
|
</Border>
|
|
|
|
<Border Grid.Column="1">
|
|
<Border.Style>
|
|
<Style BasedOn="{StaticResource BoardStyle}" TargetType="Border">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding SysRunService.SysRunState.ComState}" Value="1">
|
|
<Setter Property="Background" Value="LimeGreen" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Border.Style>
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockIcon}" Text="" />
|
|
<TextBlock Style="{StaticResource TextBlockStyle}" Text="PLC通信:" />
|
|
<TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding SysRunService.SysRunState.ComMsg}" />
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<Border Grid.Column="2" Style="{StaticResource BoardStyle}">
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockIcon}" Text="" />
|
|
<TextBlock Style="{StaticResource TextBlockStyle}" Text="数据记录:" />
|
|
<TextBlock
|
|
Margin="5,0"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="{Binding c}" />
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<Border Grid.Column="3">
|
|
<Border.Style>
|
|
<Style BasedOn="{StaticResource BoardStyle}" TargetType="Border">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding SysRunService.IsLogin}" Value="true">
|
|
<Setter Property="Background" Value="LimeGreen" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Border.Style>
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock Style="{StaticResource TextBlockIcon}" Text="" />
|
|
<TextBlock Style="{StaticResource TextBlockStyle}" Text="用户:" />
|
|
<TextBlock
|
|
Foreground="White"
|
|
Style="{StaticResource TextBlockStyle}"
|
|
Text="{Binding SysRunService.CurUser}" />
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
</Grid>
|
|
</UserControl>
|