V1版本
This commit is contained in:
@@ -2,85 +2,168 @@
|
||||
x:Class="CapMachine.Wpf.Views.FooterView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:convert="clr-namespace:CapMachine.Wpf.Converts"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:CapMachine.Wpf.Views"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:prism="http://prismlibrary.com/"
|
||||
Width="1920"
|
||||
Height="30"
|
||||
Height="32"
|
||||
prism:ViewModelLocator.AutoWireViewModel="True"
|
||||
mc:Ignorable="d">
|
||||
<Grid Margin="2,0,2,2">
|
||||
<Grid Margin="2,0,2,2" Background="#f6f5ec">
|
||||
<Grid.Resources>
|
||||
<convert:BoolOkStrConvert x:Key="BoolOkStrConvert" />
|
||||
<convert:BoolStateStrConvert x:Key="BoolStateStrConvert" />
|
||||
<Style x:Key="BoardStyle" TargetType="Border">
|
||||
<Setter Property="Background" Value="AliceBlue" />
|
||||
<Setter Property="Margin" Value="3,0" />
|
||||
<Setter Property="Background" Value="Gray" />
|
||||
<Setter Property="Margin" Value="5,1" />
|
||||
<Setter Property="CornerRadius" Value="3" />
|
||||
<Setter Property="Padding" Value="2" />
|
||||
<Setter Property="Margin" 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>
|
||||
</Grid.Resources>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border Style="{StaticResource BoardStyle}">
|
||||
<StackPanel Style="{StaticResource StackPanelStyle}">
|
||||
<TextBlock FontSize="20" Text="PLC通信:" />
|
||||
<TextBlock FontSize="20" Text="正常" />
|
||||
</StackPanel>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition />
|
||||
</Grid.RowDefinitions>
|
||||
<Border Height="0" Margin="0,0">
|
||||
<ProgressBar
|
||||
Height="2"
|
||||
Foreground="Green"
|
||||
IsIndeterminate="True"
|
||||
Visibility="Visible" />
|
||||
</Border>
|
||||
<Border Grid.Column="1" Style="{StaticResource BoardStyle}">
|
||||
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
||||
<Border>
|
||||
<Border.Style>
|
||||
<Style BasedOn="{StaticResource BoardStyle}" TargetType="Border">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding MachineRtDataService.LinkState}" Value="true">
|
||||
<Setter Property="Background" Value="LimeGreen" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Border.Style>
|
||||
<StackPanel Style="{StaticResource StackPanelStyle}">
|
||||
<TextBlock
|
||||
Margin="5,0,5,0"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="/Assets/Fonts/#iconfont"
|
||||
FontSize="16"
|
||||
Foreground="White"
|
||||
Text="" />
|
||||
<TextBlock
|
||||
FontSize="16"
|
||||
Foreground="White"
|
||||
Text="PLC通信:" />
|
||||
<TextBlock
|
||||
Margin="5,0"
|
||||
FontSize="16"
|
||||
Foreground="White"
|
||||
Text="{Binding MachineRtDataService.LinkState, Converter={StaticResource BoolOkStrConvert}}" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
<Border>
|
||||
<Border.Style>
|
||||
<Style BasedOn="{StaticResource BoardStyle}" TargetType="Border">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding DataRecordService.IsRecord}" Value="true">
|
||||
<Setter Property="Background" Value="LimeGreen" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding DataRecordService.IsRecord}" Value="false">
|
||||
<Setter Property="Background" Value="Gray" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Border.Style>
|
||||
<StackPanel Style="{StaticResource StackPanelStyle}">
|
||||
<TextBlock
|
||||
Margin="5,0,5,0"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="/Assets/Fonts/#iconfont"
|
||||
FontSize="16"
|
||||
Foreground="White"
|
||||
Text="" />
|
||||
<TextBlock
|
||||
FontSize="16"
|
||||
Foreground="White"
|
||||
Text="数据记录:" />
|
||||
<TextBlock
|
||||
Margin="5,0"
|
||||
FontSize="16"
|
||||
Foreground="White"
|
||||
Text="{Binding DataRecordService.IsRecord, Converter={StaticResource BoolStateStrConvert}}" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
<Border>
|
||||
<Border.Style>
|
||||
<Style BasedOn="{StaticResource BoardStyle}" TargetType="Border">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ConfigService.CurUserDto.IsEnable}" Value="true">
|
||||
<Setter Property="Background" Value="LimeGreen" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding ConfigService.CurUserDto.IsEnable}" Value="false">
|
||||
<Setter Property="Background" Value="Gray" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Border.Style>
|
||||
<StackPanel Style="{StaticResource StackPanelStyle}">
|
||||
<TextBlock
|
||||
Margin="5,0,5,0"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="/Assets/Fonts/#iconfont"
|
||||
FontSize="16"
|
||||
Foreground="White"
|
||||
Text="" />
|
||||
<TextBlock
|
||||
FontSize="16"
|
||||
Foreground="White"
|
||||
Text="用户登录:" />
|
||||
<TextBlock
|
||||
Margin="5,0"
|
||||
FontSize="16"
|
||||
Foreground="White"
|
||||
Text="{Binding ConfigService.CurUserDto.Name}" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
<!--<Border Grid.Column="1" Style="{StaticResource BoardStyle}">
|
||||
<StackPanel Style="{StaticResource StackPanelStyle}">
|
||||
<TextBlock FontSize="20" Text="仪表通信:" />
|
||||
<TextBlock FontSize="20" Text="正常" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
<Border Grid.Column="2" Style="{StaticResource BoardStyle}">
|
||||
</Border>-->
|
||||
<!--<Border Grid.Column="2" Style="{StaticResource BoardStyle}">
|
||||
<StackPanel Style="{StaticResource StackPanelStyle}">
|
||||
<TextBlock FontSize="20" Text="服务器通信:" />
|
||||
<TextBlock FontSize="20" Text="正常" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
<Border Grid.Column="3" Style="{StaticResource BoardStyle}">
|
||||
<StackPanel Style="{StaticResource StackPanelStyle}">
|
||||
<TextBlock FontSize="20" Text="用户登录:" />
|
||||
<TextBlock FontSize="20" Text="Admin" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
<Border Grid.Column="4" Style="{StaticResource BoardStyle}">
|
||||
</Border>-->
|
||||
|
||||
<!--<Border Grid.Column="4" Style="{StaticResource BoardStyle}">
|
||||
<StackPanel Style="{StaticResource StackPanelStyle}">
|
||||
<TextBlock FontSize="20" Text="记录仪通信:" />
|
||||
<TextBlock FontSize="20" Text="正常" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
<Border Grid.Column="5" Style="{StaticResource BoardStyle}">
|
||||
</Border>-->
|
||||
<!--<Border Grid.Column="5" Style="{StaticResource BoardStyle}">
|
||||
<StackPanel Style="{StaticResource StackPanelStyle}">
|
||||
<TextBlock FontSize="20" Text="高速记录:" />
|
||||
<TextBlock FontSize="20" Text="正常" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
<Border Grid.Column="6" Style="{StaticResource BoardStyle}">
|
||||
<StackPanel Style="{StaticResource StackPanelStyle}">
|
||||
<TextBlock FontSize="20" Text="数据记录:" />
|
||||
<TextBlock FontSize="20" Text="正常" />
|
||||
</StackPanel>
|
||||
</Border>
|
||||
<Border Grid.Column="7" Style="{StaticResource BoardStyle}">
|
||||
<StackPanel Style="{StaticResource StackPanelStyle}">
|
||||
<TextBlock FontSize="20" Text="系统状态:" />
|
||||
<TextBlock FontSize="20" Text="正常" />
|
||||
</StackPanel>
|
||||
</Border>-->
|
||||
|
||||
|
||||
</Border>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
||||
Reference in New Issue
Block a user