Files
YuPu-OrpaonEMS/OrpaonEMS.App/Views/PcsView.xaml
2025-02-28 22:23:13 +08:00

671 lines
36 KiB
XML

<UserControl
x:Class="OrpaonEMS.App.Views.PcsView"
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:OrpaonEMS.App.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:prism="http://prismlibrary.com/"
xmlns:sync="http://schemas.syncfusion.com/wpf"
d:DesignHeight="708"
d:DesignWidth="1024"
prism:ViewModelLocator.AutoWireViewModel="True"
mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="150*" />
<RowDefinition Height="260*" />
<RowDefinition Height="180*" />
</Grid.RowDefinitions>
<Border
Grid.RowSpan="2"
Margin="0,0,0,0"
Background="Transparent" />
<Grid Margin="0,0,0,0">
<Grid.Resources>
<Style x:Key="borderStyle" TargetType="Border">
<Setter Property="Margin" Value="5,5" />
<Setter Property="Background" Value="WhiteSmoke" />
<Setter Property="CornerRadius" Value="5" />
<Setter Property="Opacity" Value="0.8" />
</Style>
<Style x:Key="StackPanelStyle" TargetType="StackPanel">
<Setter Property="Margin" Value="5,0,5,5" />
<Setter Property="Orientation" Value="Horizontal" />
</Style>
<Style x:Key="TextBlockIcoStyle" TargetType="TextBlock">
<Setter Property="Margin" Value="5,0" />
<Setter Property="FontFamily" Value="../Assets/Fonts/#iconfont" />
<Setter Property="FontSize" Value="16" />
<Setter Property="Foreground" Value="Black" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
<Style x:Key="LabelTitleStyle" TargetType="Label">
<Setter Property="FontSize" Value="12" />
<Setter Property="Margin" Value="0,8" />
</Style>
<Style x:Key="LabelUnitStyle" TargetType="Label">
<Setter Property="FontSize" Value="11" />
<Setter Property="Margin" Value="5,8,0,5" />
</Style>
<Style x:Key="TextBlockValueStyle" TargetType="TextBlock">
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="FontSize" Value="20" />
<Setter Property="Margin" Value="10,0,1,0" />
</Style>
<Style x:Key="TextBlockTitleStyle" TargetType="TextBlock">
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="FontSize" Value="16" />
<Setter Property="Margin" Value="0,0" />
</Style>
</Grid.Resources>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Border Style="{StaticResource borderStyle}" />
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="5*" />
<RowDefinition Height="1*" />
</Grid.RowDefinitions>
<sync:SfCircularGauge x:Name="Gauge1" Margin="10">
<sync:SfCircularGauge.Scales>
<sync:CircularScale
BindRangeStrokeToTicks="True"
EndValue="160"
FontSize="10"
Interval="20"
LabelStroke="Gray"
MinorTicksPerInterval="0"
RimStroke="#FFBBBBBB"
RimStrokeThickness="15"
StartAngle="140"
StartValue="0"
SweepAngle="260"
TickLength="10"
TickPosition="Inside"
TickStroke="#FFBBBBBB"
TickStrokeThickness="5">
<sync:CircularScale.Pointers>
<sync:CircularPointer
x:Name="SpeedPointer"
NeedleLengthFactor="0.5"
NeedlePointerStroke="#FF719836"
PointerCapDiameter="25"
PointerCapStroke="#FF719836"
Value="{Binding inPowerPCSDataService.Power, Mode=TwoWay}" />
<sync:CircularPointer
PointerType="RangePointer"
RangePointerStroke="#FF719836"
RangePointerStrokeThickness="15"
Value="{Binding inPowerPCSDataService.Power.RtValue, Mode=TwoWay}" />
</sync:CircularScale.Pointers>
<sync:CircularScale.Ranges>
<sync:CircularRange
EndValue="100"
StartValue="0"
Stroke="#FF719836" />
</sync:CircularScale.Ranges>
</sync:CircularScale>
</sync:SfCircularGauge.Scales>
</sync:SfCircularGauge>
<StackPanel Grid.Row="1" Style="{StaticResource StackPanelStyle}">
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="&#xe760;" />
<TextBlock Style="{StaticResource TextBlockTitleStyle}" Text="输出功率:" />
<TextBlock Style="{StaticResource TextBlockValueStyle}" Text="{Binding inPowerPCSDataService.Power, StringFormat=0.0}" />
<Label Content="V" Style="{StaticResource LabelUnitStyle}" />
</StackPanel>
</Grid>
<Border Grid.Column="1" Style="{StaticResource borderStyle}" />
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="5*" />
<RowDefinition Height="1*" />
</Grid.RowDefinitions>
<sync:SfCircularGauge x:Name="Gauge2" Margin="10">
<sync:SfCircularGauge.Scales>
<sync:CircularScale
BindRangeStrokeToTicks="True"
EndValue="1500"
FontSize="10"
Interval="300"
LabelStroke="Gray"
MinorTicksPerInterval="0"
RimStroke="#FFBBBBBB"
RimStrokeThickness="15"
StartAngle="140"
StartValue="0"
SweepAngle="260"
TickPosition="Inside"
TickStroke="#FFBBBBBB"
TickStrokeThickness="5">
<sync:CircularScale.Pointers>
<sync:CircularPointer
x:Name="SpeedPointer2"
NeedleLengthFactor="0.5"
NeedlePointerStroke="#FF1B8FCF"
PointerCapDiameter="25"
PointerCapStroke="#FF1B8FCF"
Value="{Binding inPowerPCSDataService.InputVol, Mode=TwoWay}" />
<sync:CircularPointer
PointerType="RangePointer"
RangePointerStroke="#FF1B8FCF"
RangePointerStrokeThickness="15"
Value="{Binding inPowerPCSDataService.InputVol, Mode=TwoWay}" />
</sync:CircularScale.Pointers>
<sync:CircularScale.Ranges>
<sync:CircularRange
EndValue="1500"
StartValue="0"
Stroke="#FF1B8FCF" />
</sync:CircularScale.Ranges>
</sync:CircularScale>
</sync:SfCircularGauge.Scales>
</sync:SfCircularGauge>
<StackPanel Grid.Row="1" Style="{StaticResource StackPanelStyle}">
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="&#xe73a; " />
<TextBlock Style="{StaticResource TextBlockTitleStyle}" Text="直流侧电压:" />
<TextBlock Style="{StaticResource TextBlockValueStyle}" Text="{Binding inPowerPCSDataService.InputVol, StringFormat=0.0}" />
<Label Content="A" Style="{StaticResource LabelUnitStyle}" />
</StackPanel>
</Grid>
<Border Grid.Column="2" Style="{StaticResource borderStyle}" />
<Grid Grid.Column="2">
<Grid.RowDefinitions>
<RowDefinition Height="5*" />
<RowDefinition Height="1*" />
</Grid.RowDefinitions>
<sync:SfCircularGauge x:Name="Gauge3" Margin="10">
<sync:SfCircularGauge.Scales>
<sync:CircularScale
BindRangeStrokeToTicks="True"
EndValue="160"
FontSize="10"
Interval="20"
LabelStroke="Gray"
MinorTicksPerInterval="0"
RimStroke="#FFBBBBBB"
RimStrokeThickness="15"
StartAngle="140"
StartValue="0"
SweepAngle="260"
TickLength="10"
TickPosition="Inside"
TickStroke="#FFBBBBBB"
TickStrokeThickness="5">
<sync:CircularScale.Pointers>
<sync:CircularPointer
x:Name="SpeedPointer3"
NeedleLengthFactor="0.5"
NeedlePointerStroke="#FF719836"
PointerCapDiameter="25"
PointerCapStroke="#FF719836"
Value="{Binding inPowerPCSDataService.InputCur, Mode=TwoWay}" />
<sync:CircularPointer
PointerType="RangePointer"
RangePointerStroke="#FF719836"
RangePointerStrokeThickness="15"
Value="{Binding inPowerPCSDataService.InputCur, Mode=TwoWay}" />
</sync:CircularScale.Pointers>
<sync:CircularScale.Ranges>
<sync:CircularRange
EndValue="100"
StartValue="0"
Stroke="#FF719836" />
</sync:CircularScale.Ranges>
</sync:CircularScale>
</sync:SfCircularGauge.Scales>
</sync:SfCircularGauge>
<StackPanel Grid.Row="1" Style="{StaticResource StackPanelStyle}">
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="&#xe73b;" />
<TextBlock Style="{StaticResource TextBlockTitleStyle}" Text="交流侧电压:" />
<TextBlock Style="{StaticResource TextBlockValueStyle}" Text="{Binding inPowerPCSDataService.InputCur, StringFormat=0.0}" />
<Label Content="V" Style="{StaticResource LabelUnitStyle}" />
</StackPanel>
</Grid>
<Border Grid.Column="3" Style="{StaticResource borderStyle}" />
<Grid Grid.Column="3">
<Grid.RowDefinitions>
<RowDefinition Height="5*" />
<RowDefinition Height="1*" />
</Grid.RowDefinitions>
<sync:SfCircularGauge x:Name="Gauge4" Margin="10">
<sync:SfCircularGauge.Scales>
<sync:CircularScale
BindRangeStrokeToTicks="True"
EndValue="160"
FontSize="10"
Interval="20"
LabelStroke="Gray"
MinorTicksPerInterval="0"
RimStroke="#FFBBBBBB"
RimStrokeThickness="15"
StartAngle="140"
StartValue="0"
SweepAngle="260"
TickLength="10"
TickPosition="Inside"
TickStroke="#FFBBBBBB"
TickStrokeThickness="5">
<sync:CircularScale.Pointers>
<sync:CircularPointer
x:Name="SpeedPointer4"
NeedleLengthFactor="0.5"
NeedlePointerStroke="#FF1B8FCF"
PointerCapDiameter="25"
PointerCapStroke="#FF1B8FCF"
Value="{Binding inPowerPCSDataService.InputPw, Mode=TwoWay}" />
<sync:CircularPointer
PointerType="RangePointer"
RangePointerStroke="#FF1B8FCF"
RangePointerStrokeThickness="15"
Value="{Binding inPowerPCSDataService.InputPw, Mode=TwoWay}" />
</sync:CircularScale.Pointers>
<sync:CircularScale.Ranges>
<sync:CircularRange
EndValue="100"
StartValue="0"
Stroke="#FF1B8FCF" />
</sync:CircularScale.Ranges>
</sync:CircularScale>
</sync:SfCircularGauge.Scales>
</sync:SfCircularGauge>
<StackPanel Grid.Row="1" Style="{StaticResource StackPanelStyle}">
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="&#xe760;" />
<TextBlock Style="{StaticResource TextBlockTitleStyle}" Text="输入功率:" />
<TextBlock Style="{StaticResource TextBlockValueStyle}" Text="{Binding inPowerPCSDataService.InputPw, StringFormat=0.0}" />
<Label Content="A" Style="{StaticResource LabelUnitStyle}" />
</StackPanel>
</Grid>
</Grid>
<Grid Grid.Row="1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="70" />
<RowDefinition Height="30" />
<RowDefinition />
</Grid.RowDefinitions>
<Grid Margin="3,0">
<Grid.Resources>
<Style x:Key="borderStyle" TargetType="Border">
<Setter Property="Margin" Value="5,5" />
<Setter Property="Background" Value="White" />
<Setter Property="CornerRadius" Value="5" />
<Setter Property="Opacity" Value="0.8" />
</Style>
<Style x:Key="StackPanelBigStyle" TargetType="StackPanel">
<Setter Property="Margin" Value="2,2" />
<Setter Property="Background" Value="#66CCFF" />
<Setter Property="Orientation" Value="Horizontal" />
</Style>
<Style x:Key="TextBlockIcoStyle" TargetType="TextBlock">
<Setter Property="Margin" Value="5,5" />
<Setter Property="FontFamily" Value="../Assets/Fonts/#iconfont" />
<Setter Property="FontSize" Value="30" />
<Setter Property="Foreground" Value="Black" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
<Style x:Key="LabelTitleStyle" TargetType="Label">
<Setter Property="FontSize" Value="12" />
<Setter Property="Margin" Value="0,0" />
</Style>
<Style x:Key="TextBlockValueStyle" TargetType="TextBlock">
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="Foreground" Value="Gray" />
<Setter Property="FontSize" Value="20" />
<Setter Property="Margin" Value="0,-2" />
</Style>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<StackPanel
Grid.Row="0"
Grid.Column="0"
Style="{StaticResource StackPanelBigStyle}">
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="&#xe73c;" />
<StackPanel>
<Label Style="{StaticResource LabelTitleStyle}">PCS系统运行状态信息</Label>
<TextBlock Style="{StaticResource TextBlockValueStyle}" Text="{Binding inPowerPCSDataService.PcsRunState.PcsStateMsg}" />
</StackPanel>
</StackPanel>
<StackPanel
Grid.Row="0"
Grid.Column="1"
Style="{StaticResource StackPanelBigStyle}">
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="&#xe748;" />
<StackPanel>
<Label Style="{StaticResource LabelTitleStyle}">PCS系统并网/VF离网状态</Label>
<TextBlock Style="{StaticResource TextBlockValueStyle}" Text="{Binding inPowerPCSDataService.PcsRunState.PcsRemoteLocationStateMsg}" />
</StackPanel>
</StackPanel>
<StackPanel
Grid.Row="0"
Grid.Column="2"
Style="{StaticResource StackPanelBigStyle}">
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="&#xe77d;" />
<StackPanel>
<Label Style="{StaticResource LabelTitleStyle}">PCS系统远程/就地状态</Label>
<TextBlock Style="{StaticResource TextBlockValueStyle}" Text="{Binding inPowerPCSDataService.PcsRunState.PcsOffLineStateMsg}" />
</StackPanel>
</StackPanel>
<StackPanel
Grid.Row="0"
Grid.Column="3"
Style="{StaticResource StackPanelBigStyle}">
<TextBlock Style="{StaticResource TextBlockIcoStyle}" Text="&#xe7bf;" />
<StackPanel>
<Label Style="{StaticResource LabelTitleStyle}">PCS系统总故障状态</Label>
<TextBlock Style="{StaticResource TextBlockValueStyle}" Text="{Binding inPowerPCSDataService.PcsRunState.PcsSysFaultStateMsg}" />
</StackPanel>
</StackPanel>
</Grid>
<Border Grid.Row="1" Margin="4,1" Background="AliceBlue">
<TextBlock x:Name="textblock" FontSize="20" Text="{Binding inPowerPCSDataService.CurPcsAlarmModel.CurAlarmMsg}">
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property="Background" Value="Red"></Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding Text, ElementName=textblock}" Value ="">
<Setter Property="Background" Value="#66CCFF"></Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</Border>
<Grid Grid.Row="2">
<Grid.Resources>
<Style x:Key="boardIco" TargetType="Border">
<Setter Property="Margin" Value="0,5" />
<Setter Property="Background" Value="#00B2EE" />
<Setter Property="CornerRadius" Value="2" />
</Style>
<Style x:Key="TextBlockIco" TargetType="TextBlock">
<Setter Property="FontFamily" Value="../Assets/Fonts/#iconfont" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="FontSize" Value="24" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="Foreground" Value="White" />
</Style>
<Style x:Key="TextBlockHead" TargetType="TextBlock">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="FontSize" Value="16" />
<Setter Property="Margin" Value="3,0" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="Foreground" Value="Gray" />
</Style>
<Style x:Key="TextBlockValue" TargetType="TextBlock">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="FontSize" Value="18" />
<Setter Property="Margin" Value="10,0" />
<Setter Property="Foreground" Value="Gray" />
<Setter Property="HorizontalAlignment" Value="Center" />
</Style>
<Style x:Key="LableUnit" TargetType="Label">
<Setter Property="HorizontalAlignment" Value="Right" />
<Setter Property="VerticalContentAlignment" Value="Bottom" />
<Setter Property="Margin" Value="0,0,10,5" />
<Setter Property="Foreground" Value="LimeGreen" />
<Setter Property="FontSize" Value="14" />
</Style>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<DockPanel
Grid.Row="0"
Grid.Column="0"
Margin="5,0,2,0">
<Border Style="{StaticResource boardIco}">
<TextBlock Style="{StaticResource TextBlockIco}" Text="&#xe717;" />
</Border>
<TextBlock Style="{StaticResource TextBlockHead}" Text="交流A相电压:" />
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.AVol, StringFormat=0.0}" />
<Label Content=" V" Style="{StaticResource LableUnit}" />
</DockPanel>
<DockPanel
Grid.Row="1"
Grid.Column="0"
Margin="5,0,2,0">
<Border Style="{StaticResource boardIco}">
<TextBlock Style="{StaticResource TextBlockIco}" Text="&#xe716;" />
</Border>
<TextBlock Style="{StaticResource TextBlockHead}" Text="交流A相电流:" />
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.ACur, StringFormat=0.0}" />
<Label Content="A" Style="{StaticResource LableUnit}" />
</DockPanel>
<DockPanel
Grid.Row="2"
Grid.Column="0"
Margin="5,0,2,0">
<Border Style="{StaticResource boardIco}">
<TextBlock Style="{StaticResource TextBlockIco}" Text="&#xe760;" />
</Border>
<TextBlock Style="{StaticResource TextBlockHead}" Text="PCS总有功功率:" />
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.Power, StringFormat=0.0}" />
<Label Content="Kw" Style="{StaticResource LableUnit}" />
</DockPanel>
<DockPanel
Grid.Row="3"
Grid.Column="0"
Margin="5,0,2,0">
<Border Style="{StaticResource boardIco}">
<TextBlock Style="{StaticResource TextBlockIco}" Text="&#xe805;" />
</Border>
<TextBlock Style="{StaticResource TextBlockHead}" Text="电网频率:" />
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.NetFreq, StringFormat=0.0}" />
<Label Content="Hz" Style="{StaticResource LableUnit}" />
</DockPanel>
<DockPanel
Grid.Row="4"
Grid.Column="0"
Margin="5,0,2,0">
<Border Style="{StaticResource boardIco}">
<TextBlock Style="{StaticResource TextBlockIco}" Text="&#xe717;" />
</Border>
<TextBlock Style="{StaticResource TextBlockHead}" Text="输入电压:" />
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.InputVol, StringFormat=0.0}" />
<Label Content="V" Style="{StaticResource LableUnit}" />
</DockPanel>
<DockPanel
Grid.Row="0"
Grid.Column="1"
Margin="2">
<Border Style="{StaticResource boardIco}">
<TextBlock Style="{StaticResource TextBlockIco}" Text="&#xe717;" />
</Border>
<TextBlock Style="{StaticResource TextBlockHead}" Text="交流B相电压:" />
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.BVol, StringFormat=0.0}" />
<Label Content=" V" Style="{StaticResource LableUnit}" />
</DockPanel>
<DockPanel
Grid.Row="1"
Grid.Column="1"
Margin="2">
<Border Style="{StaticResource boardIco}">
<TextBlock Style="{StaticResource TextBlockIco}" Text="&#xe716;" />
</Border>
<TextBlock Style="{StaticResource TextBlockHead}" Text="交流B相电流:" />
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.BCur, StringFormat=0.0}" />
<Label Content="A" Style="{StaticResource LableUnit}" />
</DockPanel>
<DockPanel
Grid.Row="2"
Grid.Column="1"
Margin="2">
<Border Style="{StaticResource boardIco}">
<TextBlock Style="{StaticResource TextBlockIco}" Text="&#xe760;" />
</Border>
<TextBlock Style="{StaticResource TextBlockHead}" Text="PCS总无功功率:" />
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.TotalReactivePw, StringFormat=0.0}" />
<Label Content="Kw" Style="{StaticResource LableUnit}" />
</DockPanel>
<DockPanel
Grid.Row="3"
Grid.Column="1"
Margin="2">
<Border Style="{StaticResource boardIco}">
<TextBlock Style="{StaticResource TextBlockIco}" Text="&#xe7a0;" />
</Border>
<TextBlock Style="{StaticResource TextBlockHead}" Text="输出功率因数:" />
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.PwNetFactor, StringFormat=0.0}" />
<Label Content="" Style="{StaticResource LableUnit}" />
</DockPanel>
<DockPanel
Grid.Row="4"
Grid.Column="1"
Margin="2">
<Border Style="{StaticResource boardIco}">
<TextBlock Style="{StaticResource TextBlockIco}" Text="&#xe716;" />
</Border>
<TextBlock Style="{StaticResource TextBlockHead}" Text="输入电流:" />
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.InputCur, StringFormat=0.0}" />
<Label Content="A" Style="{StaticResource LableUnit}" />
</DockPanel>
<DockPanel
Grid.Row="0"
Grid.Column="2"
Margin="2">
<Border Style="{StaticResource boardIco}">
<TextBlock Style="{StaticResource TextBlockIco}" Text="&#xe717;" />
</Border>
<TextBlock Style="{StaticResource TextBlockHead}" Text="交流C相电压:" />
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.CVol, StringFormat=0.0}" />
<Label Content=" V" Style="{StaticResource LableUnit}" />
</DockPanel>
<DockPanel
Grid.Row="1"
Grid.Column="2"
Margin="2">
<Border Style="{StaticResource boardIco}">
<TextBlock Style="{StaticResource TextBlockIco}" Text="&#xe716;" />
</Border>
<TextBlock Style="{StaticResource TextBlockHead}" Text="交流C相电流:" />
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.CCur, StringFormat=0.0}" />
<Label Content="A" Style="{StaticResource LableUnit}" />
</DockPanel>
<DockPanel
Grid.Row="2"
Grid.Column="2"
Margin="2">
<Border Style="{StaticResource boardIco}">
<TextBlock Style="{StaticResource TextBlockIco}" Text="&#xe760;" />
</Border>
<TextBlock Style="{StaticResource TextBlockHead}" Text="PCS总视在功率:" />
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.TotalApparentPw, StringFormat=0.0}" />
<Label Content="Kw" Style="{StaticResource LableUnit}" />
</DockPanel>
<DockPanel
Grid.Row="3"
Grid.Column="2"
Margin="2">
<Border Style="{StaticResource boardIco}">
<TextBlock Style="{StaticResource TextBlockIco}" Text="&#xe718;" />
</Border>
<TextBlock Style="{StaticResource TextBlockHead}" Text="散热器温度:" />
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.FinTemp, StringFormat=0.0}" />
<Label Content="℃" Style="{StaticResource LableUnit}" />
</DockPanel>
<DockPanel
Grid.Row="4"
Grid.Column="2"
Margin="2">
<Border Style="{StaticResource boardIco}">
<TextBlock Style="{StaticResource TextBlockIco}" Text="&#xe760;" />
</Border>
<TextBlock Style="{StaticResource TextBlockHead}" Text="输入功率:" />
<TextBlock Style="{StaticResource TextBlockValue}" Text="{Binding inPowerPCSDataService.InputPw, StringFormat=0.0}" />
<Label Content="Kw" Style="{StaticResource LableUnit}" />
</DockPanel>
</Grid>
</Grid>
</Grid>
<!--<Image
Grid.Row="1"
Source="pack://application:,,,/KylinEMS.Assets;component/Images/Pcs.png"
Stretch="UniformToFill" />-->
<Border
Grid.Row="2"
Margin="5"
Opacity="0.15" />
<sync:SfChart
x:Name="SplineChart"
Grid.Row="2"
Margin="10"
Header="PCS实时功率">
<sync:SfChart.PrimaryAxis>
<sync:CategoryAxis
Header="时间"
LabelFormat="HH:mm:ss"
PlotOffset="30"
ShowGridLines="False"
ShowTrackBallInfo="True" />
</sync:SfChart.PrimaryAxis>
<sync:SfChart.SecondaryAxis>
<sync:NumericalAxis Header="功率" LabelExtent="30" />
</sync:SfChart.SecondaryAxis>
<sync:SfChart.Legend>
<sync:ChartLegend DockPosition="Right" />
</sync:SfChart.Legend>
<sync:FastLineBitmapSeries
EnableAntiAliasing="True"
ItemsSource="{Binding inPowerPCSDataService.RtTrend}"
Label="功率值"
StrokeThickness="2"
XBindingPath="CurTime"
YBindingPath="QPw" />
<sync:FastLineBitmapSeries
EnableAntiAliasing="True"
ItemsSource="{Binding inPowerPCSDataService.RtTrend}"
Label="命令值"
StrokeThickness="2"
XBindingPath="CurTime"
YBindingPath="CmdPw" />
</sync:SfChart>
</Grid>
</UserControl>