1252 lines
62 KiB
XML
1252 lines
62 KiB
XML
<UserControl
|
|
x:Class="CapMachine.Wpf.Views.MonitorView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:Controls="clr-namespace:CapMachine.Shared.Controls;assembly=CapMachine.Shared"
|
|
xmlns:convert="clr-namespace:CapMachine.Wpf.Converts"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:CapMachine.Wpf.Views"
|
|
xmlns:localEx="clr-namespace:CapMachine.Wpf"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:svg1="https://github.com/dotnetprojects/SVGImage"
|
|
d:DesignHeight="980"
|
|
d:DesignWidth="1920"
|
|
mc:Ignorable="d">
|
|
<UserControl.Resources>
|
|
<localEx:BindingProxy x:Key="Proxy" Data="{Binding}" />
|
|
<convert:ValuePrecisionConverter x:Key="ValuePrecisionConverter" />
|
|
<Style x:Key="myHeaderStyle" TargetType="{x:Type GridViewColumnHeader}">
|
|
<Setter Property="FontSize" Value="24" />
|
|
<Setter Property="Width" Value="218" />
|
|
</Style>
|
|
<Style x:Key="myHeaderStyle1" TargetType="{x:Type GridViewColumnHeader}">
|
|
<Setter Property="FontSize" Value="16" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="BorderBrush" Value="Transparent" />
|
|
</Style>
|
|
</UserControl.Resources>
|
|
|
|
<materialDesign:DrawerHost
|
|
x:Name="DrawerHost"
|
|
BorderBrush="{DynamicResource MaterialDesignDivider}"
|
|
BorderThickness="2"
|
|
BottomDrawerBackground="{DynamicResource SecondaryHueLightBrush}"
|
|
BottomDrawerCornerRadius="20 20 0 0">
|
|
<materialDesign:DrawerHost.Style>
|
|
<Style BasedOn="{StaticResource {x:Type materialDesign:DrawerHost}}" TargetType="materialDesign:DrawerHost">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding IsChecked, ElementName=BackgroundToggle}" Value="True">
|
|
<Setter Property="OverlayBackground" Value="{DynamicResource PrimaryHueMidBrush}" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</materialDesign:DrawerHost.Style>
|
|
<materialDesign:DrawerHost.LeftDrawerContent>
|
|
<StackPanel Width="200" Margin="10">
|
|
<TextBlock
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Text="操作信息" />
|
|
<Button
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
CommandParameter="{x:Static Dock.Left}"
|
|
Content="操作1"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
<Button
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
Content="操作2"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
<Button
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
Content="操作3"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
</StackPanel>
|
|
</materialDesign:DrawerHost.LeftDrawerContent>
|
|
<materialDesign:DrawerHost.TopDrawerContent>
|
|
<StackPanel
|
|
Margin="16"
|
|
HorizontalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="4"
|
|
VerticalAlignment="Center"
|
|
Text="TOP BANANA" />
|
|
<Button
|
|
Margin="4"
|
|
VerticalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
Content="CLOSE ALL"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
<Button
|
|
Margin="4"
|
|
VerticalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
CommandParameter="{x:Static Dock.Top}"
|
|
Content="CLOSE THIS"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
</StackPanel>
|
|
</materialDesign:DrawerHost.TopDrawerContent>
|
|
<materialDesign:DrawerHost.RightDrawerContent>
|
|
<StackPanel Margin="16">
|
|
<TextBlock
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Text="THE RIGHT STUFF" />
|
|
<Button
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
CommandParameter="{x:Static Dock.Right}"
|
|
Content="CLOSE THIS"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
<Button
|
|
Margin="4"
|
|
HorizontalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
Content="CLOSE ALL"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
</StackPanel>
|
|
</materialDesign:DrawerHost.RightDrawerContent>
|
|
<materialDesign:DrawerHost.BottomDrawerContent>
|
|
<StackPanel
|
|
Margin="16"
|
|
HorizontalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="4"
|
|
VerticalAlignment="Center"
|
|
Foreground="{DynamicResource SecondaryHueMidForegroundBrush}"
|
|
Text="BOTTOM BRACKET" />
|
|
<Button
|
|
Margin="4"
|
|
VerticalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
Content="CLOSE ALL"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
<Button
|
|
Margin="4"
|
|
VerticalAlignment="Center"
|
|
Command="{x:Static materialDesign:DrawerHost.CloseDrawerCommand}"
|
|
CommandParameter="{x:Static Dock.Bottom}"
|
|
Content="CLOSE THIS"
|
|
Style="{StaticResource MaterialDesignFlatButton}" />
|
|
</StackPanel>
|
|
</materialDesign:DrawerHost.BottomDrawerContent>
|
|
|
|
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="280" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="160" />
|
|
<RowDefinition Height="200" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
|
|
<materialDesign:Card Margin="3,2" materialDesign:ElevationAssist.Elevation="Dp2">
|
|
<ItemsControl ItemsSource="{Binding ListMeterTag}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Horizontal" />
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<!-- HandValueParameter="{Binding MVValue}" -->
|
|
<DataTemplate>
|
|
<Controls:Meter
|
|
Margin="2,0"
|
|
AutoHandCommand="{Binding Source={StaticResource Proxy}, Path=Data.AutoHandCmd}"
|
|
AutoHandState="False"
|
|
HandValueCommand="{Binding Source={StaticResource Proxy}, Path=Data.HandValueCmd}"
|
|
HandValueMVParameter="{Binding EngMvValue}"
|
|
HandValueSVParameter="{Binding EngSvValue}"
|
|
IsEnabled="False"
|
|
MeterName="{Binding NameNoUnit}"
|
|
PVValue="{Binding EngPvValue}"
|
|
SVValue="{Binding EngSvValue}"
|
|
Unit="{Binding Unit}" />
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</materialDesign:Card>
|
|
|
|
<materialDesign:Card
|
|
Grid.Row="1"
|
|
Margin="3"
|
|
materialDesign:ElevationAssist.Elevation="Dp2">
|
|
<Grid>
|
|
<Grid.Resources>
|
|
<Style x:Key="TitelStyle" TargetType="TextBlock">
|
|
<Setter Property="FontSize" Value="26" />
|
|
<Setter Property="Margin" Value="10,0" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
</Style>
|
|
<Style x:Key="btnStyle" TargetType="Button">
|
|
<Setter Property="Width" Value="80" />
|
|
</Style>
|
|
</Grid.Resources>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<materialDesign:Card
|
|
Grid.ColumnSpan="6"
|
|
Margin="3"
|
|
Background="{DynamicResource MaterialDesignLightBackground}"
|
|
Foreground="{DynamicResource PrimaryHueLightForegroundBrush}"
|
|
UniformCornerRadius="5">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="26"
|
|
Text="" />
|
|
<TextBlock Style="{StaticResource TitelStyle}" Text="试验名称:" />
|
|
<TextBlock
|
|
VerticalAlignment="Center"
|
|
FontSize="26"
|
|
FontWeight="Bold"
|
|
Text="{Binding ConfigService.CurExpInfo.Name}" />
|
|
</StackPanel>
|
|
</materialDesign:Card>
|
|
|
|
<!--<materialDesign:Card
|
|
Grid.Column="3"
|
|
Grid.ColumnSpan="3"
|
|
Margin="3"
|
|
Background="{DynamicResource MaterialDesignLightBackground}"
|
|
Foreground="{DynamicResource PrimaryHueLightForegroundBrush}"
|
|
UniformCornerRadius="5">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="26"
|
|
Text="" />
|
|
<TextBlock Style="{StaticResource TitelStyle}" Text="当前进度:" />
|
|
|
|
<ProgressBar
|
|
Width="600"
|
|
Height="20"
|
|
Value="100" />
|
|
|
|
|
|
</StackPanel>
|
|
</materialDesign:Card>-->
|
|
|
|
<materialDesign:Card
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="6"
|
|
Margin="3"
|
|
Background="{DynamicResource MaterialDesignLightBackground}"
|
|
Foreground="{DynamicResource PrimaryHueLightForegroundBrush}"
|
|
UniformCornerRadius="5">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="26"
|
|
Text="" />
|
|
<TextBlock Style="{StaticResource TitelStyle}" Text="总运行时间:" />
|
|
<TextBlock
|
|
VerticalAlignment="Center"
|
|
FontSize="26"
|
|
FontWeight="Bold"
|
|
Foreground="LimeGreen"
|
|
Text="{Binding MachineRtDataService.CurSysExdInfo.RunTimeMsg}" />
|
|
</StackPanel>
|
|
</materialDesign:Card>
|
|
|
|
<!--<materialDesign:Card
|
|
Grid.Row="1"
|
|
Grid.Column="2"
|
|
Grid.ColumnSpan="2"
|
|
Margin="3"
|
|
Background="{DynamicResource MaterialDesignLightBackground}"
|
|
Foreground="{DynamicResource PrimaryHueLightForegroundBrush}"
|
|
UniformCornerRadius="5">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="26"
|
|
Text="" />
|
|
<TextBlock Style="{StaticResource TitelStyle}" Text="剩余时间:" />
|
|
<TextBlock
|
|
VerticalAlignment="Center"
|
|
FontSize="30"
|
|
FontWeight="Bold"
|
|
Text="" />
|
|
</StackPanel>
|
|
</materialDesign:Card>
|
|
|
|
<materialDesign:Card
|
|
Grid.Row="1"
|
|
Grid.Column="4"
|
|
Grid.ColumnSpan="2"
|
|
Margin="3"
|
|
Background="{DynamicResource MaterialDesignLightBackground}"
|
|
Foreground="{DynamicResource PrimaryHueLightForegroundBrush}"
|
|
UniformCornerRadius="5">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="26"
|
|
Text="" />
|
|
<TextBlock Style="{StaticResource TitelStyle}" Text="当前步骤:" />
|
|
<TextBlock
|
|
VerticalAlignment="Center"
|
|
FontSize="26"
|
|
FontWeight="Bold"
|
|
Text="0" />
|
|
</StackPanel>
|
|
</materialDesign:Card>-->
|
|
|
|
<materialDesign:Card
|
|
Grid.Row="2"
|
|
Grid.ColumnSpan="4"
|
|
Margin="3"
|
|
Background="{DynamicResource MaterialDesignLightBackground}"
|
|
Foreground="{DynamicResource PrimaryHueLightForegroundBrush}"
|
|
UniformCornerRadius="5">
|
|
<StackPanel Orientation="Horizontal">
|
|
<RadioButton
|
|
Width="100"
|
|
Margin="5,0"
|
|
HorizontalAlignment="Center"
|
|
Background="Green"
|
|
BorderBrush="Blue"
|
|
BorderThickness="2"
|
|
Command="{Binding OperCmd}"
|
|
CommandParameter="开始"
|
|
GroupName="OpRunStop"
|
|
IsChecked="{Binding MachineRtDataService.SysExdBoolInfos.StartRunStateQuickTag.Value}"
|
|
Style="{StaticResource MaterialDesignChoiceChipSecondaryRadioButton}">
|
|
<RadioButton.Content>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="18"
|
|
Foreground="Blue"
|
|
Text="" />
|
|
<TextBlock
|
|
FontSize="18"
|
|
FontWeight="Bold"
|
|
Text="开始" />
|
|
</StackPanel>
|
|
</RadioButton.Content>
|
|
</RadioButton>
|
|
<RadioButton
|
|
Width="100"
|
|
HorizontalAlignment="Center"
|
|
Background="Green"
|
|
BorderBrush="Blue"
|
|
BorderThickness="2"
|
|
Command="{Binding OperCmd}"
|
|
CommandParameter="结束"
|
|
GroupName="OpRunStop"
|
|
Style="{StaticResource MaterialDesignChoiceChipSecondaryRadioButton}">
|
|
<RadioButton.Content>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="18"
|
|
Foreground="Blue"
|
|
Text="" />
|
|
<TextBlock
|
|
FontSize="18"
|
|
FontWeight="Bold"
|
|
Text="结束" />
|
|
</StackPanel>
|
|
</RadioButton.Content>
|
|
</RadioButton>
|
|
|
|
<!-- 分隔符 -->
|
|
<TextBlock
|
|
Margin="5,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="24"
|
|
Foreground="Green"
|
|
Text="|" />
|
|
|
|
<Button
|
|
Margin="5,0"
|
|
Command="{Binding OperCmd}"
|
|
CommandParameter="复位"
|
|
Foreground="White">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="14"
|
|
Foreground="White"
|
|
Text="" />
|
|
<TextBlock Text="复位" />
|
|
</StackPanel>
|
|
</Button>
|
|
<Button
|
|
Margin="5,0"
|
|
Command="{Binding OperCmd}"
|
|
CommandParameter="暂停"
|
|
Foreground="White">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="14"
|
|
Foreground="White"
|
|
Text="" />
|
|
<TextBlock Text="暂停" />
|
|
</StackPanel>
|
|
</Button>
|
|
<Button
|
|
Margin="5,0"
|
|
Command="{Binding OperCmd}"
|
|
CommandParameter="消音"
|
|
Foreground="White">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="14"
|
|
Foreground="White"
|
|
Text="" />
|
|
<TextBlock Text="消音" />
|
|
</StackPanel>
|
|
</Button>
|
|
<Button
|
|
Margin="5,0"
|
|
Command="{Binding OperCmd}"
|
|
CommandParameter="试验信息"
|
|
Foreground="White">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="14"
|
|
Foreground="White"
|
|
Text="" />
|
|
<TextBlock Text="试验信息" />
|
|
</StackPanel>
|
|
</Button>
|
|
<!--<Button
|
|
Margin="5,0"
|
|
Command="{x:Static materialDesign:DrawerHost.OpenDrawerCommand}"
|
|
CommandParameter="{x:Static Dock.Left}"
|
|
Content="{materialDesign:PackIcon Kind=ArrowUp}"
|
|
Foreground="White" />-->
|
|
|
|
</StackPanel>
|
|
</materialDesign:Card>
|
|
|
|
<materialDesign:Card
|
|
Grid.Row="2"
|
|
Grid.Column="4"
|
|
Grid.ColumnSpan="2"
|
|
Margin="3"
|
|
Background="{DynamicResource MaterialDesignLightBackground}"
|
|
Foreground="{DynamicResource PrimaryHueLightForegroundBrush}"
|
|
UniformCornerRadius="5">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="30"
|
|
Text="" />
|
|
<TextBlock Style="{StaticResource TitelStyle}" Text="状态:" />
|
|
<TextBlock
|
|
VerticalAlignment="Center"
|
|
FontSize="30"
|
|
FontWeight="Bold"
|
|
Foreground="LimeGreen"
|
|
Text="{Binding SysRunServer.MachineRunState1.RunStateMsg}" />
|
|
|
|
</StackPanel>
|
|
</materialDesign:Card>
|
|
<materialDesign:Card
|
|
Grid.Row="3"
|
|
Grid.Column="0"
|
|
Grid.ColumnSpan="6"
|
|
Margin="3"
|
|
Background="{DynamicResource MaterialDesignLightBackground}"
|
|
Foreground="{DynamicResource PrimaryHueLightForegroundBrush}"
|
|
UniformCornerRadius="5">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="26"
|
|
Foreground="Red"
|
|
Text="" />
|
|
<TextBlock
|
|
FontSize="20"
|
|
Style="{StaticResource TitelStyle}"
|
|
Text="报警:" />
|
|
|
|
<ItemsControl ItemsSource="{Binding AlarmService.ListAlarmRunCell}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Horizontal" />
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<!-- HandValueParameter="{Binding MVValue}" -->
|
|
<DataTemplate>
|
|
<Border Margin="3,6" CornerRadius="2">
|
|
<Border.Style>
|
|
<Style TargetType="Border">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding ActiveState}" Value="True">
|
|
<Setter Property="Background" Value="Red" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding ActiveState}" Value="false">
|
|
<Setter Property="Background" Value="LightSlateGray" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Border.Style>
|
|
<TextBlock
|
|
Margin="5,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Foreground="WhiteSmoke"
|
|
Text="{Binding CurAlarmConfig.Name}"
|
|
ToolTip="{Binding CurAlarmConfig.Message}">
|
|
<!--<TextBlock.ToolTip>
|
|
<StackPanel>
|
|
<TextBlock FontWeight="Bold" Text="官方网站" />
|
|
<TextBlock Text="点击这个按钮,进入百度首页" />
|
|
</StackPanel>
|
|
</TextBlock.ToolTip>-->
|
|
</TextBlock>
|
|
</Border>
|
|
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
|
|
</StackPanel>
|
|
</materialDesign:Card>
|
|
</Grid>
|
|
</materialDesign:Card>
|
|
|
|
<materialDesign:Card
|
|
Grid.Row="2"
|
|
Margin="3"
|
|
materialDesign:ElevationAssist.Elevation="Dp1">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="180" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<!-- 手动添加 -->
|
|
<!--<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="冷水机组"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="冷水机组" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="冷水机组" />
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="HV电源"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="HV电源" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="HV电源" />
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="HV启动"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="HV启动" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="HV启动" />
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="3" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="LV启动"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="LV启动" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="LV启动" />
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="4" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="水泵"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="水泵" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="水泵" />
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="5" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="冷凝器电加热"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="冷凝器电加热" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="冷凝器电加热" />
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="6" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="吸气混合器电加热"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="吸气混合器电加热" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="吸气混合器电加热" />
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="7" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="吸排气球阀"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="吸排气球阀" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="吸排气球阀" />
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="8" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="温度箱"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="温度箱" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="温度箱" />
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="9" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="水SEV1"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="水SEV1" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="水SEV1" />
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="10" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="水SEV2"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="水SEV2" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="水SEV2" />
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="11" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="HCV1"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="HCV1" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="HCV1" />
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="12" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="HCV2"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="HCV2" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="HCV2" />
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="13" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="ECV1"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="ECV1" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="ECV1" />
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="14" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="ECV2"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="ECV2" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="ECV2" />
|
|
|
|
</StackPanel>
|
|
<StackPanel Grid.Row="15" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Name="抽真空"
|
|
Margin="8,0,2,0"
|
|
Command="{Binding HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="抽真空" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="抽真空" />
|
|
</StackPanel>
|
|
</Grid>-->
|
|
<materialDesign:Card Margin="0,0" materialDesign:ElevationAssist.Elevation="Dp2">
|
|
<ItemsControl IsEnabled="False" ItemsSource="{Binding ListHandSwitchData}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel Orientation="Vertical" />
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<ItemsControl.ItemTemplate>
|
|
<!-- HandValueParameter="{Binding MVValue}" IsEnabled="{Binding MachineRtDataService.AutoHandSwtichConditionState.IsCanSwitch}" -->
|
|
<DataTemplate>
|
|
<StackPanel Margin="0,2,2,2" Orientation="Horizontal">
|
|
<ToggleButton
|
|
Margin="8,0,2,0"
|
|
Command="{Binding Source={StaticResource Proxy}, Path=Data.HandEnableCmd}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
|
|
IsChecked="{Binding State}"
|
|
Style="{StaticResource MaterialDesignSwitchToggleButton}"
|
|
ToolTip="{Binding Name}" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Text="{Binding Name}" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</materialDesign:Card>
|
|
|
|
<!--<svg1:SVGImage Grid.Column="1" Source="E:\图库资源\SVGEdit\CapMachineOutput.svg" RenderTransformOrigin="0.5,0.5" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="3" />-->
|
|
<!-- inkscape -->
|
|
<Canvas Grid.Column="1" Visibility="Visible">
|
|
<Canvas.Background>
|
|
<ImageBrush ImageSource="\Assets\Images\CapMachineOutput1.png" />
|
|
</Canvas.Background>
|
|
<Rectangle
|
|
Canvas.Left="30"
|
|
Canvas.Top="127"
|
|
Width="400"
|
|
Height="306"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Stroke="SkyBlue"
|
|
StrokeThickness="4" />
|
|
<Label
|
|
Canvas.Left="35"
|
|
Canvas.Top="128"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Content="压缩机环境箱"
|
|
FontSize="26"
|
|
Foreground="DarkSlateBlue" />
|
|
<Label
|
|
Canvas.Left="582"
|
|
Canvas.Top="57"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Content="HCV1"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
<Label
|
|
Canvas.Left="907"
|
|
Canvas.Top="25"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Content="HCV2"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
<Label
|
|
Canvas.Left="907"
|
|
Canvas.Top="342"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Content="HCV4"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
<Label
|
|
Canvas.Left="1057"
|
|
Canvas.Top="117"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Content="COND2"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
|
|
<Controls:ValueShow
|
|
Canvas.Left="304"
|
|
Canvas.Top="332"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
CellTitle="转速"
|
|
CellUnit="{Binding SpeedTag.Unit}"
|
|
CellValue="{Binding SpeedTag.EngPvValueStr}" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="301"
|
|
Canvas.Top="162"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
CellTitle="电压"
|
|
CellUnit="{Binding ComCapBusVolTag.Unit}"
|
|
CellValue="{Binding ComCapBusVolTag.EngPvValueStr}" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="301"
|
|
Canvas.Top="212"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
CellTitle="电流"
|
|
CellUnit="{Binding ComCapBusCurTag.Unit}"
|
|
CellValue="{Binding ComCapBusCurTag.EngPvValueStr}" />
|
|
<!-- CellUnit="{Binding ComCapPwTag.Unit}" -->
|
|
<Controls:ValueShow
|
|
Canvas.Left="301"
|
|
Canvas.Top="262"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
CellTitle="功率"
|
|
CellUnit="{Binding ComCapPwTag.Unit}"
|
|
CellValue="{Binding ComCapPwTag.EngPvValueStr}" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="89"
|
|
Canvas.Top="183"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
CellTitle="排气口压力"
|
|
CellUnit="{Binding ExPressTag.Unit}"
|
|
CellValue="{Binding ExPressTag.EngPvValueStr}" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="89"
|
|
Canvas.Top="236"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
CellTitle="吸气口压力"
|
|
CellUnit="{Binding InhPressTag.Unit}"
|
|
CellValue="{Binding InhPressTag.EngPvValueStr}" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="90"
|
|
Canvas.Top="292"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
CellTitle="吸气口温度"
|
|
CellUnit="{Binding InhTempTag.Unit}"
|
|
CellValue="{Binding InhTempTag.EngPvValueStr}" />
|
|
<!--<Controls:ValueShow
|
|
Canvas.Left="551"
|
|
Canvas.Top="272"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
CellTitle="吸气压力MV"
|
|
CellUnit="%"
|
|
CellValue="{Binding InhPressTag.EngMvValue}" />-->
|
|
<!--<Controls:ValueShow
|
|
Canvas.Left="1003"
|
|
Canvas.Top="152"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
CellTitle="阀前温度"
|
|
CellUnit="{Binding TxvFrTempTag.Unit}"
|
|
CellValue="{Binding TxvFrTempTag.PVModel.EngValueStr}" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="1003"
|
|
Canvas.Top="239"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
CellTitle="阀前压力"
|
|
CellUnit="{Binding TxvFrPressTag.Unit}"
|
|
CellValue="{Binding TxvFrPressTag.PVModel.EngValueStr}" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="635"
|
|
Canvas.Top="420"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
CellTitle="吸气混合器温度"
|
|
CellUnit="{Binding OS2TempTag.Unit}"
|
|
CellValue="{Binding OS2TempTag.PVModel.EngValueStr}" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="1076"
|
|
Canvas.Top="360"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
CellTitle="冷凝器进水温"
|
|
CellUnit="{Binding CondInTempTag.Unit}"
|
|
CellValue="{Binding CondInTempTag.PVModel.EngValueStr}" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="1194"
|
|
Canvas.Top="360"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
CellTitle="冷凝器出水温"
|
|
CellUnit="{Binding Cond1TempTag.Unit}"
|
|
CellValue="{Binding Cond1TempTag.PVModel.EngValueStr}" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="1217"
|
|
Canvas.Top="136"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
CellTitle="排气压力MV"
|
|
CellUnit="%"
|
|
CellValue="{Binding ExPressTag.EngMvValue}" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="871"
|
|
Canvas.Top="224"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
CellTitle="吸气温度MV"
|
|
CellUnit="%"
|
|
CellValue="{Binding InhTempTag.EngMvValue}" />-->
|
|
<StackPanel
|
|
Canvas.Left="1250"
|
|
Canvas.Top="5"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="30"
|
|
Foreground="Gray"
|
|
Text="" />
|
|
<Label
|
|
Content="工艺流程图"
|
|
FontSize="30"
|
|
FontWeight="Bold"
|
|
Foreground="Gray" />
|
|
</StackPanel>
|
|
<Label
|
|
Canvas.Left="447"
|
|
Canvas.Top="120"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Content="COND1"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
<Label
|
|
Canvas.Left="361"
|
|
Canvas.Top="15"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="CCV1"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
<Label
|
|
Canvas.Left="993"
|
|
Canvas.Top="8"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Content="CCV2"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
<Label
|
|
Canvas.Left="852"
|
|
Canvas.Top="43"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Content="FM1"
|
|
FontSize="16"
|
|
FontWeight="Bold"
|
|
RenderTransformOrigin="0.879,0.282" />
|
|
<Label
|
|
Canvas.Left="760"
|
|
Canvas.Top="142"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Content="OS1"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
<Label
|
|
Canvas.Left="692"
|
|
Canvas.Top="289"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Content="OS2"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
<Label
|
|
Canvas.Left="748"
|
|
Canvas.Top="359"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Content="FM2"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
<Label
|
|
Canvas.Left="917"
|
|
Canvas.Top="460"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Content="HCV3"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
<Label
|
|
Canvas.Left="1097"
|
|
Canvas.Top="407"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Content="EV4"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
<Label
|
|
Canvas.Left="1157"
|
|
Canvas.Top="362"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Content="EV3"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
<Label
|
|
Canvas.Left="1215"
|
|
Canvas.Top="315"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Content="EV2"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
<Label
|
|
Canvas.Left="1272"
|
|
Canvas.Top="265"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Content="EV1"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="740"
|
|
Canvas.Top="415"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
CellTitle="润滑油流量"
|
|
CellUnit="{Binding LubeFlowTag.Unit}"
|
|
CellValue="{Binding LubeFlowTag.EngPvValueStr}" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="723"
|
|
Canvas.Top="23"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
CellTitle="冷媒流量"
|
|
CellUnit="{Binding VRVTag.Unit}"
|
|
CellValue="{Binding VRVTag.EngPvValueStr}" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="1020"
|
|
Canvas.Top="155"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
CellTitle="COND2温度"
|
|
CellUnit="{Binding Cond2TempTag.Unit}"
|
|
CellValue="{Binding Cond2TempTag.EngPvValueStr}" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="448"
|
|
Canvas.Top="147"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
CellTitle="COND1温度"
|
|
CellUnit="{Binding Cond1TempTag.Unit}"
|
|
CellValue="{Binding Cond1TempTag.EngPvValueStr}" />
|
|
<Label
|
|
Canvas.Left="1172"
|
|
Canvas.Top="120"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Content="FM3"
|
|
FontSize="16"
|
|
FontWeight="Bold" />
|
|
<Controls:ValueShow
|
|
Canvas.Left="1150"
|
|
Canvas.Top="155"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
CellTitle="液冷煤流量"
|
|
CellUnit="{Binding LiqRefFlowTag.Unit}"
|
|
CellValue="{Binding LiqRefFlowTag.EngPvValueStr}" />
|
|
|
|
|
|
</Canvas>
|
|
|
|
|
|
</Grid>
|
|
|
|
</materialDesign:Card>
|
|
|
|
<Border
|
|
Grid.Row="0"
|
|
Grid.RowSpan="3"
|
|
Grid.Column="1"
|
|
Margin="0,2,2,2"
|
|
BorderBrush="Gray"
|
|
BorderThickness="2">
|
|
<ListView FontSize="16" ItemsSource="{Binding ListTag}">
|
|
<ListView.View>
|
|
<GridView ColumnHeaderContainerStyle="{StaticResource myHeaderStyle1}">
|
|
<GridViewColumn DisplayMemberBinding="{Binding Name}" Header="名称" />
|
|
<GridViewColumn DisplayMemberBinding="{Binding EngPvValueStr}" Header="实时值" />
|
|
<!-- DisplayMemberBinding="{Binding EngPvValue, Converter={StaticResource ValuePrecisionConverter}, ConverterParameter={Binding Path=DecimalPoint}}" -->
|
|
<!--<GridViewColumn Header="实时值">
|
|
<GridViewColumn.DisplayMemberBinding>
|
|
<MultiBinding Converter="{StaticResource ValuePrecisionConverter}">
|
|
<Binding Path="EngPvValue" />
|
|
<Binding Path="DecimalPoint" />
|
|
</MultiBinding>
|
|
</GridViewColumn.DisplayMemberBinding>
|
|
</GridViewColumn>-->
|
|
</GridView>
|
|
</ListView.View>
|
|
<ListView.ItemContainerStyle>
|
|
<Style TargetType="ListViewItem">
|
|
<!--<Setter Property="Background" Value="Transparent" />-->
|
|
<Setter Property="Height" Value="20" />
|
|
</Style>
|
|
</ListView.ItemContainerStyle>
|
|
</ListView>
|
|
|
|
</Border>
|
|
</Grid>
|
|
</materialDesign:DrawerHost>
|
|
|
|
</UserControl>
|