396 lines
25 KiB
Plaintext
396 lines
25 KiB
Plaintext
|
|
<UserControl x:Class="AutomaticApp.Views.Buoystation"
|
||
|
|
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:AutomaticApp.Views"
|
||
|
|
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
||
|
|
xmlns:Models="clr-namespace:Models;assembly=Models"
|
||
|
|
mc:Ignorable="d"
|
||
|
|
d:DesignHeight="750" d:DesignWidth="1100">
|
||
|
|
|
||
|
|
<UserControl.Resources>
|
||
|
|
<Style TargetType="GroupBox">
|
||
|
|
<Setter Property="Margin" Value="10,5"/>
|
||
|
|
<Setter Property="Template">
|
||
|
|
<Setter.Value>
|
||
|
|
<ControlTemplate TargetType="GroupBox">
|
||
|
|
<Grid>
|
||
|
|
<!--左上角-->
|
||
|
|
<Polyline Points="0 30, 0 10, 10 0, 30 0" Stroke="#9918AABD" StrokeThickness="1" VerticalAlignment="Top" HorizontalAlignment="Left"/>
|
||
|
|
<!--左上角点-->
|
||
|
|
<Ellipse Width="4" Height="4" VerticalAlignment="Top" HorizontalAlignment="Left" Fill="#9918AABD" Margin="24,-2,0,0"/>
|
||
|
|
<Ellipse Width="4" Height="4" VerticalAlignment="Top" HorizontalAlignment="Left" Fill="#9918AABD" Margin="-2,24,0,0"/>
|
||
|
|
<!--右上角-->
|
||
|
|
<Path Data="M0 0, 3 3, 30 3, 33 0, 68 0, 73 7,78 7, 78 10M8 0, 25 0" Stroke="#5518AABD" VerticalAlignment="Top" HorizontalAlignment="Right"/>
|
||
|
|
<!--左下角-->
|
||
|
|
<Polyline Points="0,0 0,15 10,15" Stroke="#5518AABD" VerticalAlignment="Bottom" HorizontalAlignment="Left"/>
|
||
|
|
<!--右下角-->
|
||
|
|
<Polyline Points="10,0 0,10" Stroke="#5518AABD" VerticalAlignment="Bottom" HorizontalAlignment="Right"/>
|
||
|
|
<!--右下角图标-->
|
||
|
|
<Polygon Points="0,7 7 7 7 0" Fill="#9918AABD" VerticalAlignment="Bottom" HorizontalAlignment="Right"/>
|
||
|
|
|
||
|
|
<Border BorderBrush="#5518AABD" BorderThickness="0,1,0,0" VerticalAlignment="Top" Margin="30,-0.5,78,0"/>
|
||
|
|
<Border BorderBrush="#5518AABD" BorderThickness="0,0,1,0" HorizontalAlignment="Right" Margin="0,10"/>
|
||
|
|
<Border BorderBrush="#5518AABD" BorderThickness="0,1,0,0" VerticalAlignment="Bottom" Margin="10,0"/>
|
||
|
|
<Border BorderBrush="#5518AABD" BorderThickness="0,0,1,0" HorizontalAlignment="Left" Margin="-0.5,15"/>
|
||
|
|
|
||
|
|
<!--箭头-->
|
||
|
|
<Path Data="M0 0,3 0,5 4,3 8,0 8,3 4" Fill="#9918AABD" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="10,13" />
|
||
|
|
<Path Data="M0 0,3 0,5 4,3 8,0 8,3 4" Fill="#5518AABD" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="16,13" />
|
||
|
|
<!--字体-->
|
||
|
|
<TextBlock Text="{TemplateBinding Header}" Foreground="#18AABD" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="25,8"/>
|
||
|
|
|
||
|
|
<!--占位对象-->
|
||
|
|
<ContentPresenter/>
|
||
|
|
</Grid>
|
||
|
|
</ControlTemplate>
|
||
|
|
</Setter.Value>
|
||
|
|
</Setter>
|
||
|
|
</Style>
|
||
|
|
</UserControl.Resources>
|
||
|
|
<ScrollViewer VerticalScrollBarVisibility="Hidden" >
|
||
|
|
<Grid>
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="750"/>
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
|
||
|
|
<!--第一行-->
|
||
|
|
<Grid Grid.Row="0">
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition/>
|
||
|
|
<ColumnDefinition/>
|
||
|
|
<ColumnDefinition/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
|
||
|
|
<!--第一列-->
|
||
|
|
<!--列表-->
|
||
|
|
<UniformGrid Columns="1" Margin="10,0">
|
||
|
|
<GroupBox Header="环境状态">
|
||
|
|
<Grid>
|
||
|
|
<ItemsControl ItemsSource="{Binding BuoyEvironment1}" VerticalAlignment="Center">
|
||
|
|
<ItemsControl.ItemsPanel>
|
||
|
|
<ItemsPanelTemplate>
|
||
|
|
<UniformGrid Columns="4"/>
|
||
|
|
</ItemsPanelTemplate>
|
||
|
|
</ItemsControl.ItemsPanel>
|
||
|
|
<ItemsControl.ItemTemplate>
|
||
|
|
<DataTemplate>
|
||
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,5">
|
||
|
|
<TextBlock Text="{Binding Value,StringFormat={}{0:F2}}" HorizontalAlignment="Center" FontSize="16" Foreground="#FF2BEDF1" Margin="0,5"/>
|
||
|
|
<TextBlock Text="{Binding Header}" Foreground="#AAFFFFFF" FontSize="12"/>
|
||
|
|
</StackPanel>
|
||
|
|
</DataTemplate>
|
||
|
|
</ItemsControl.ItemTemplate>
|
||
|
|
</ItemsControl>
|
||
|
|
|
||
|
|
<!--右上角图例 采集时间-->
|
||
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10">
|
||
|
|
<Border Width="6" Height="6" Background="#552BEDF1" Margin="5,0"/>
|
||
|
|
<TextBlock Text="{Binding buoyEnvironmentModel.RecordTime,StringFormat=yyyy/MM/dd HH:mm:ss}" FontSize="11" Foreground="#44FFFFFF"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
</GroupBox>
|
||
|
|
|
||
|
|
<!--折线图-->
|
||
|
|
<GroupBox Header="气温">
|
||
|
|
<Grid>
|
||
|
|
<lvc:CartesianChart Margin="20,35,20,5" DataContext="{Binding weatherSensorModel.Siancharts}" DisableAnimations="True">
|
||
|
|
<lvc:CartesianChart.Series>
|
||
|
|
<lvc:LineSeries Values="{Binding Values}" Title="{Binding Value_Name}"
|
||
|
|
PointGeometrySize="0" Stroke="#FF2BEDF1" StrokeThickness="1">
|
||
|
|
<lvc:LineSeries.Fill>
|
||
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
||
|
|
<GradientStop Color="#552BEDF1" Offset="0"/>
|
||
|
|
<GradientStop Color="Transparent" Offset="1"/>
|
||
|
|
</LinearGradientBrush>
|
||
|
|
</lvc:LineSeries.Fill>
|
||
|
|
</lvc:LineSeries>
|
||
|
|
</lvc:CartesianChart.Series>
|
||
|
|
<!--X轴-->
|
||
|
|
<lvc:CartesianChart.AxisX>
|
||
|
|
<lvc:Axis Labels="{Binding X_Time}">
|
||
|
|
<lvc:Axis.Separator>
|
||
|
|
<lvc:Separator Step="1" StrokeThickness="0"/>
|
||
|
|
</lvc:Axis.Separator>
|
||
|
|
</lvc:Axis>
|
||
|
|
</lvc:CartesianChart.AxisX>
|
||
|
|
<!--Y轴-->
|
||
|
|
<lvc:CartesianChart.AxisY>
|
||
|
|
<lvc:Axis MinValue="{Binding Y_MinValue}" MaxValue="{Binding Y_MaxValue}">
|
||
|
|
<lvc:Axis.Separator>
|
||
|
|
<lvc:Separator Step="{Binding Step}" Stroke="#11FFFFFF"/>
|
||
|
|
</lvc:Axis.Separator>
|
||
|
|
</lvc:Axis>
|
||
|
|
</lvc:CartesianChart.AxisY>
|
||
|
|
</lvc:CartesianChart>
|
||
|
|
|
||
|
|
<!--右上角图例 采集时间-->
|
||
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10">
|
||
|
|
<Border Width="6" Height="6" Background="#552BEDF1" Margin="5,0"/>
|
||
|
|
<TextBlock Text="{Binding weatherSensorModel.RecordTime,StringFormat=yyyy/MM/dd HH:mm:ss}" FontSize="11" Foreground="#44FFFFFF"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
|
||
|
|
</GroupBox>
|
||
|
|
|
||
|
|
<GroupBox Header="气压">
|
||
|
|
<Grid>
|
||
|
|
<lvc:CartesianChart Margin="20,35,20,5" DataContext="{Binding weatherSensorModel.AirPressure}" DisableAnimations="True">
|
||
|
|
<lvc:CartesianChart.Series>
|
||
|
|
<lvc:LineSeries Values="{Binding Values}" Title="{Binding Value_Name}"
|
||
|
|
PointGeometrySize="0" Stroke="#FF2BEDF1" StrokeThickness="1">
|
||
|
|
<lvc:LineSeries.Fill>
|
||
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
||
|
|
<GradientStop Color="#552BEDF1" Offset="0"/>
|
||
|
|
<GradientStop Color="Transparent" Offset="1"/>
|
||
|
|
</LinearGradientBrush>
|
||
|
|
</lvc:LineSeries.Fill>
|
||
|
|
</lvc:LineSeries>
|
||
|
|
</lvc:CartesianChart.Series>
|
||
|
|
<!--X轴-->
|
||
|
|
<lvc:CartesianChart.AxisX>
|
||
|
|
<lvc:Axis Labels="{Binding X_Time}">
|
||
|
|
<lvc:Axis.Separator>
|
||
|
|
<lvc:Separator Step="1" StrokeThickness="0"/>
|
||
|
|
</lvc:Axis.Separator>
|
||
|
|
</lvc:Axis>
|
||
|
|
</lvc:CartesianChart.AxisX>
|
||
|
|
<!--Y轴-->
|
||
|
|
<lvc:CartesianChart.AxisY>
|
||
|
|
<lvc:Axis MinValue="{Binding Y_MinValue}" MaxValue="{Binding Y_MaxValue}">
|
||
|
|
<lvc:Axis.Separator>
|
||
|
|
<lvc:Separator Step="{Binding Step}" Stroke="#11FFFFFF"/>
|
||
|
|
</lvc:Axis.Separator>
|
||
|
|
</lvc:Axis>
|
||
|
|
</lvc:CartesianChart.AxisY>
|
||
|
|
</lvc:CartesianChart>
|
||
|
|
|
||
|
|
<!--右上角图例 采集时间-->
|
||
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10">
|
||
|
|
<Border Width="6" Height="6" Background="#552BEDF1" Margin="5,0"/>
|
||
|
|
<TextBlock Text="{Binding weatherSensorModel.RecordTime,StringFormat=yyyy/MM/dd HH:mm:ss}" FontSize="11" Foreground="#44FFFFFF"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
|
||
|
|
</GroupBox>
|
||
|
|
|
||
|
|
</UniformGrid>
|
||
|
|
|
||
|
|
<!--第二列-->
|
||
|
|
<Grid Grid.Column="1">
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition/>
|
||
|
|
<RowDefinition Height="280"/>
|
||
|
|
<RowDefinition Height="1.5*"/>
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
<Grid>
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition/>
|
||
|
|
<ColumnDefinition/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
<!--图片-->
|
||
|
|
<Border Width="150" Height="180" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||
|
|
<Border.Background>
|
||
|
|
<ImageBrush ImageSource="../Assets/Images/浮标.png" Stretch="Uniform"/>
|
||
|
|
</Border.Background>
|
||
|
|
</Border>
|
||
|
|
<Models:FuBiao Grid.Column="1" Rotate_X="{Binding buoyEnvironmentModel.FB_Attitude_x}" Rotate_Y="{Binding buoyEnvironmentModel.FB_Attitude_y}" Rotate_Z="{Binding buoyEnvironmentModel.FB_Attitude_z}" Font_Size="12" Text_Color="#FF2BEDF1"/>
|
||
|
|
</Grid>
|
||
|
|
|
||
|
|
|
||
|
|
<!--报警记录-->
|
||
|
|
<Grid Grid.Row="1">
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="101*"/>
|
||
|
|
<ColumnDefinition Width="265*"/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="30"/>
|
||
|
|
<RowDefinition/>
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="#99FFFFFF"
|
||
|
|
FontWeight="Normal">
|
||
|
|
<Run Text="" FontFamily="../Assets/Fonts/#iconfont"/>
|
||
|
|
<Run Text="报警记录"/>
|
||
|
|
</TextBlock>
|
||
|
|
|
||
|
|
<ItemsControl Grid.Row="1" ItemsSource="{Binding AlarmList}" Grid.ColumnSpan="2">
|
||
|
|
<ItemsControl.ItemTemplate>
|
||
|
|
<DataTemplate>
|
||
|
|
<Grid Height="23">
|
||
|
|
<Grid.ColumnDefinitions>
|
||
|
|
<ColumnDefinition Width="20"/>
|
||
|
|
<ColumnDefinition Width="30"/>
|
||
|
|
<ColumnDefinition Width="1.3*"/>
|
||
|
|
<ColumnDefinition/>
|
||
|
|
<ColumnDefinition Width="1.5*"/>
|
||
|
|
</Grid.ColumnDefinitions>
|
||
|
|
<Border Width="6" Height="6" Background="IndianRed" CornerRadius="3" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
||
|
|
<TextBlock Text="{Binding StationID}" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="#992BEDF1" FontWeight="Normal"/>
|
||
|
|
<TextBlock Text="{Binding RecordTime,StringFormat=yyyy/MM/dd HH:mm:ss}" Grid.Column="2" VerticalAlignment="Center" Foreground="#992BEDF1" FontWeight="Normal"/>
|
||
|
|
<TextBlock Text="{Binding ParaName}" Grid.Column="3" VerticalAlignment="Center" Foreground="#992BEDF1" FontWeight="Normal"/>
|
||
|
|
<TextBlock Text="{Binding ParaState}" Grid.Column="4" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="#992BEDF1" FontWeight="Normal"/>
|
||
|
|
|
||
|
|
</Grid>
|
||
|
|
</DataTemplate>
|
||
|
|
</ItemsControl.ItemTemplate>
|
||
|
|
</ItemsControl>
|
||
|
|
</Grid>
|
||
|
|
|
||
|
|
<!--雨量-->
|
||
|
|
<GroupBox Grid.Row="2" Header="雨量" Margin="0,5">
|
||
|
|
<Grid>
|
||
|
|
<lvc:CartesianChart Margin="20,35,20,5" DataContext="{Binding weatherSensorModel.AirRainfall}" DisableAnimations="True">
|
||
|
|
<lvc:CartesianChart.Series>
|
||
|
|
<lvc:LineSeries Values="{Binding Values}" Title="{Binding Value_Name}"
|
||
|
|
PointGeometrySize="0" Stroke="#FF2BEDF1" StrokeThickness="1">
|
||
|
|
<lvc:LineSeries.Fill>
|
||
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
||
|
|
<GradientStop Color="#552BEDF1" Offset="0"/>
|
||
|
|
<GradientStop Color="Transparent" Offset="1"/>
|
||
|
|
</LinearGradientBrush>
|
||
|
|
</lvc:LineSeries.Fill>
|
||
|
|
</lvc:LineSeries>
|
||
|
|
</lvc:CartesianChart.Series>
|
||
|
|
<!--X轴-->
|
||
|
|
<lvc:CartesianChart.AxisX>
|
||
|
|
<lvc:Axis Labels="{Binding X_Time}">
|
||
|
|
<lvc:Axis.Separator>
|
||
|
|
<lvc:Separator Step="1" StrokeThickness="0"/>
|
||
|
|
</lvc:Axis.Separator>
|
||
|
|
</lvc:Axis>
|
||
|
|
</lvc:CartesianChart.AxisX>
|
||
|
|
<!--Y轴-->
|
||
|
|
<lvc:CartesianChart.AxisY>
|
||
|
|
<lvc:Axis MinValue="{Binding Y_MinValue}" MaxValue="{Binding Y_MaxValue}">
|
||
|
|
<lvc:Axis.Separator>
|
||
|
|
<lvc:Separator Step="{Binding Step}" Stroke="#11FFFFFF"/>
|
||
|
|
</lvc:Axis.Separator>
|
||
|
|
</lvc:Axis>
|
||
|
|
</lvc:CartesianChart.AxisY>
|
||
|
|
</lvc:CartesianChart>
|
||
|
|
|
||
|
|
<!--右上角图例 采集时间-->
|
||
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10">
|
||
|
|
<Border Width="6" Height="6" Background="#552BEDF1" Margin="5,0"/>
|
||
|
|
<TextBlock Text="{Binding weatherSensorModel.RecordTime,StringFormat=yyyy/MM/dd HH:mm:ss}" FontSize="11" Foreground="#44FFFFFF"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
|
||
|
|
</GroupBox>
|
||
|
|
|
||
|
|
</Grid>
|
||
|
|
<!--第三列-->
|
||
|
|
<UniformGrid Columns="1" Margin="10,0" Grid.Column="2">
|
||
|
|
<GroupBox Header="环境状态">
|
||
|
|
<Grid>
|
||
|
|
<ItemsControl ItemsSource="{Binding BuoyEvironment2}" VerticalAlignment="Center">
|
||
|
|
<ItemsControl.ItemsPanel>
|
||
|
|
<ItemsPanelTemplate>
|
||
|
|
<UniformGrid Columns="4"/>
|
||
|
|
</ItemsPanelTemplate>
|
||
|
|
</ItemsControl.ItemsPanel>
|
||
|
|
<ItemsControl.ItemTemplate>
|
||
|
|
<DataTemplate>
|
||
|
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,10">
|
||
|
|
<TextBlock Text="{Binding Value,StringFormat={}{0:F2}}" HorizontalAlignment="Center" FontSize="16" Foreground="#FF2BEDF1" Margin="0,1"/>
|
||
|
|
<TextBlock Text="{Binding Header}" Foreground="#AAFFFFFF" FontSize="12"/>
|
||
|
|
</StackPanel>
|
||
|
|
</DataTemplate>
|
||
|
|
</ItemsControl.ItemTemplate>
|
||
|
|
</ItemsControl>
|
||
|
|
|
||
|
|
<!--右上角图例 采集时间-->
|
||
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10">
|
||
|
|
<Border Width="6" Height="6" Background="#552BEDF1" Margin="5,0"/>
|
||
|
|
<TextBlock Text="{Binding buoyEnvironmentModel.RecordTime,StringFormat=yyyy/MM/dd HH:mm:ss}" FontSize="11" Foreground="#44FFFFFF"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
</GroupBox>
|
||
|
|
|
||
|
|
<!--湿度-->
|
||
|
|
<GroupBox Header="湿度">
|
||
|
|
<Grid>
|
||
|
|
<lvc:CartesianChart Margin="20,35,20,5" DataContext="{Binding weatherSensorModel.Humcharts}" DisableAnimations="True">
|
||
|
|
<lvc:CartesianChart.Series>
|
||
|
|
<lvc:LineSeries Values="{Binding Values}" Title="{Binding Value_Name}"
|
||
|
|
PointGeometrySize="0" Stroke="#FF2BEDF1" StrokeThickness="1">
|
||
|
|
<lvc:LineSeries.Fill>
|
||
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
||
|
|
<GradientStop Color="#552BEDF1" Offset="0"/>
|
||
|
|
<GradientStop Color="Transparent" Offset="1"/>
|
||
|
|
</LinearGradientBrush>
|
||
|
|
</lvc:LineSeries.Fill>
|
||
|
|
</lvc:LineSeries>
|
||
|
|
</lvc:CartesianChart.Series>
|
||
|
|
<!--X轴-->
|
||
|
|
<lvc:CartesianChart.AxisX>
|
||
|
|
<lvc:Axis Labels="{Binding X_Time}">
|
||
|
|
<lvc:Axis.Separator>
|
||
|
|
<lvc:Separator Step="1" StrokeThickness="0"/>
|
||
|
|
</lvc:Axis.Separator>
|
||
|
|
</lvc:Axis>
|
||
|
|
</lvc:CartesianChart.AxisX>
|
||
|
|
<!--Y轴-->
|
||
|
|
<lvc:CartesianChart.AxisY>
|
||
|
|
<lvc:Axis MinValue="{Binding Y_MinValue}" MaxValue="{Binding Y_MaxValue}">
|
||
|
|
<lvc:Axis.Separator>
|
||
|
|
<lvc:Separator Step="{Binding Step}" Stroke="#11FFFFFF"/>
|
||
|
|
</lvc:Axis.Separator>
|
||
|
|
</lvc:Axis>
|
||
|
|
</lvc:CartesianChart.AxisY>
|
||
|
|
</lvc:CartesianChart>
|
||
|
|
|
||
|
|
<!--右上角图例 采集时间-->
|
||
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10">
|
||
|
|
<Border Width="6" Height="6" Background="#552BEDF1" Margin="5,0"/>
|
||
|
|
<TextBlock Text="{Binding weatherSensorModel.RecordTime,StringFormat=yyyy/MM/dd HH:mm:ss}" FontSize="11" Foreground="#44FFFFFF"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
|
||
|
|
</GroupBox>
|
||
|
|
|
||
|
|
<GroupBox Header="蓄电池剩余电量(%)">
|
||
|
|
<Grid>
|
||
|
|
<lvc:CartesianChart Margin="20,35,20,5" DataContext="{Binding buoyEnvironmentModel.RemainingBatteryPower}" DisableAnimations="True">
|
||
|
|
<lvc:CartesianChart.Series>
|
||
|
|
<lvc:LineSeries Values="{Binding Values }" Title="{Binding Value_Name}"
|
||
|
|
PointGeometrySize="0" Stroke="#FF2BEDF1" StrokeThickness="1">
|
||
|
|
<lvc:LineSeries.Fill>
|
||
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
||
|
|
<GradientStop Color="#552BEDF1" Offset="0"/>
|
||
|
|
<GradientStop Color="Transparent" Offset="1"/>
|
||
|
|
</LinearGradientBrush>
|
||
|
|
</lvc:LineSeries.Fill>
|
||
|
|
</lvc:LineSeries>
|
||
|
|
</lvc:CartesianChart.Series>
|
||
|
|
<lvc:CartesianChart.AxisX>
|
||
|
|
<lvc:Axis Labels="{Binding X_Time}">
|
||
|
|
<lvc:Axis.Separator>
|
||
|
|
<lvc:Separator Step="1" StrokeThickness="0"/>
|
||
|
|
</lvc:Axis.Separator>
|
||
|
|
</lvc:Axis>
|
||
|
|
</lvc:CartesianChart.AxisX>
|
||
|
|
<lvc:CartesianChart.AxisY>
|
||
|
|
<lvc:Axis MinValue="{Binding Y_MinValue}" MaxValue="{Binding Y_MaxValue}">
|
||
|
|
<lvc:Axis.Separator>
|
||
|
|
<lvc:Separator Step="{Binding Step}" Stroke="#11FFFFFF"/>
|
||
|
|
</lvc:Axis.Separator>
|
||
|
|
</lvc:Axis>
|
||
|
|
</lvc:CartesianChart.AxisY>
|
||
|
|
</lvc:CartesianChart>
|
||
|
|
|
||
|
|
<!--右上角图例 采集时间-->
|
||
|
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10">
|
||
|
|
<Border Width="6" Height="6" Background="#552BEDF1" Margin="5,0"/>
|
||
|
|
<TextBlock Text="{Binding buoyEnvironmentModel.RecordTime,StringFormat=yyyy/MM/dd HH:mm:ss}" FontSize="11" Foreground="#44FFFFFF"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
</GroupBox>
|
||
|
|
</UniformGrid>
|
||
|
|
</Grid>
|
||
|
|
</Grid>
|
||
|
|
</ScrollViewer>
|
||
|
|
</UserControl>
|