2023-12-23 03:35:57 +00:00
|
|
|
<UserControl
|
|
|
|
|
x:Class="_20230724_MBJC_upperpc.Views.BuoyPlatformView"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:converters="clr-namespace:_20230724_MBJC_upperpc.Common"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:local="clr-namespace:_20230724_MBJC_upperpc.Views"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
d:DesignHeight="450"
|
|
|
|
|
d:DesignWidth="800"
|
|
|
|
|
mc:Ignorable="d">
|
|
|
|
|
<UserControl.Resources>
|
|
|
|
|
<ResourceDictionary>
|
|
|
|
|
<converters:AspectRatioConverter x:Key="AspectRatioConverter" />
|
2024-03-13 07:02:46 +00:00
|
|
|
<Style x:Key="CommonTextStyle" TargetType="TextBlock">
|
|
|
|
|
<Setter Property="FontSize" Value="30" />
|
|
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
</Style>
|
2023-12-23 03:35:57 +00:00
|
|
|
</ResourceDictionary>
|
|
|
|
|
</UserControl.Resources>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="9*" />
|
|
|
|
|
<ColumnDefinition Width="7*" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid Name="LeftGrid" Grid.Column="0">
|
|
|
|
|
<local:BuoyModel
|
|
|
|
|
x:Name="BuoyModel"
|
2024-02-27 09:21:02 +00:00
|
|
|
AnimationEnable="True"
|
2024-03-13 07:02:46 +00:00
|
|
|
Rotate_X="{Binding Beacon.BasicSite_Pitch_Angle}"
|
|
|
|
|
Rotate_Y="{Binding Beacon.BasicSite_Heading_Speed}"
|
|
|
|
|
Rotate_Z="{Binding Beacon.BasicSite_Roll_Angle}"
|
2023-12-23 03:35:57 +00:00
|
|
|
TBDEnable="True" />
|
|
|
|
|
<local:InitialView
|
|
|
|
|
Width="{Binding ElementName=LeftGrid, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4}"
|
|
|
|
|
Height="{Binding ElementName=LeftGrid, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4}"
|
|
|
|
|
Margin="10,0,0,10"
|
|
|
|
|
HorizontalAlignment="Left"
|
2024-03-13 07:02:46 +00:00
|
|
|
VerticalAlignment="Bottom"
|
|
|
|
|
Heading_Angle="{Binding Beacon.BasicSite_Heading_Speed}"
|
|
|
|
|
Pitch_Angle="{Binding Beacon.BasicSite_Pitch_Angle}"
|
|
|
|
|
Roll_Angle="{Binding Beacon.BasicSite_Roll_Angle}" />
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Column="2">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
|
|
<ColumnDefinition Width="4*" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Border
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Padding="5"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Background="#44FFFFFF"
|
|
|
|
|
CornerRadius="10">
|
|
|
|
|
<TextBlock Style="{StaticResource CommonTextStyle}" Text="采集时间:" />
|
|
|
|
|
</Border>
|
|
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Style="{StaticResource CommonTextStyle}"
|
|
|
|
|
Text="{Binding Beacon.Datetime, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" />
|
|
|
|
|
<Border
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Padding="5"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Background="#44FFFFFF"
|
|
|
|
|
CornerRadius="10">
|
|
|
|
|
<TextBlock Style="{StaticResource CommonTextStyle}" Text="经 度:" />
|
|
|
|
|
</Border>
|
|
|
|
|
<StackPanel
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
<TextBlock Style="{StaticResource CommonTextStyle}" Text="{Binding Beacon.BasicSite_JD, StringFormat={}{0}°}" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
<Border
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Padding="5"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Background="#44FFFFFF"
|
|
|
|
|
CornerRadius="10">
|
|
|
|
|
<TextBlock Style="{StaticResource CommonTextStyle}" Text="纬 度:" />
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Style="{StaticResource CommonTextStyle}"
|
|
|
|
|
Text="{Binding Beacon.BasicSite_WD, StringFormat={}{0}°}" />
|
|
|
|
|
|
|
|
|
|
<Border
|
|
|
|
|
Grid.Row="3"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Padding="5"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Background="#44FFFFFF"
|
|
|
|
|
CornerRadius="10">
|
|
|
|
|
<TextBlock Style="{StaticResource CommonTextStyle}" Text="基站深度:" />
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="3"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Style="{StaticResource CommonTextStyle}"
|
|
|
|
|
Text="{Binding Beacon.BasicSite_Depth, StringFormat={}{0}米}" />
|
|
|
|
|
<Border
|
|
|
|
|
Grid.Row="4"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Padding="5"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Background="#44FFFFFF"
|
|
|
|
|
CornerRadius="10">
|
|
|
|
|
<TextBlock Style="{StaticResource CommonTextStyle}" Text="航向角速度:" />
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="4"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Style="{StaticResource CommonTextStyle}"
|
|
|
|
|
Text="{Binding Beacon.BasicSite_Heading_Speed, StringFormat={}{0}°/s}" />
|
|
|
|
|
|
|
|
|
|
<Border
|
|
|
|
|
Grid.Row="5"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Padding="5"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Background="#44FFFFFF"
|
|
|
|
|
CornerRadius="10">
|
|
|
|
|
<TextBlock Style="{StaticResource CommonTextStyle}" Text="俯仰角速度:" />
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="5"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Style="{StaticResource CommonTextStyle}"
|
|
|
|
|
Text="{Binding Beacon.BasicSite_Pitch_Speed, StringFormat={}{0}°/s}" />
|
|
|
|
|
<Border
|
|
|
|
|
Grid.Row="6"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Padding="5"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Background="#44FFFFFF"
|
|
|
|
|
CornerRadius="10">
|
|
|
|
|
<TextBlock Style="{StaticResource CommonTextStyle}" Text="横滚角速度:" />
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="6"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Style="{StaticResource CommonTextStyle}"
|
|
|
|
|
Text="{Binding Beacon.BasicSite_Roll_Speed, StringFormat={}{0}°/s}" />
|
|
|
|
|
<Border
|
|
|
|
|
Grid.Row="7"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Padding="5"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Background="#44FFFFFF"
|
|
|
|
|
CornerRadius="10">
|
|
|
|
|
<TextBlock Style="{StaticResource CommonTextStyle}" Text="前向加速度:" />
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="7"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Style="{StaticResource CommonTextStyle}"
|
|
|
|
|
Text="{Binding Beacon.BasicSite_Forword_A, StringFormat={}{0}m/s²}" />
|
|
|
|
|
<Border
|
|
|
|
|
Grid.Row="8"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Padding="5"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Background="#44FFFFFF"
|
|
|
|
|
CornerRadius="10">
|
|
|
|
|
<TextBlock Style="{StaticResource CommonTextStyle}" Text="右向加速度:" />
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="8"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Style="{StaticResource CommonTextStyle}"
|
|
|
|
|
Text="{Binding Beacon.BasicSite_Right_A, StringFormat={}{0}m/s²}" />
|
|
|
|
|
|
|
|
|
|
<Border
|
|
|
|
|
Grid.Row="9"
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Padding="5"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Background="#44FFFFFF"
|
|
|
|
|
CornerRadius="10">
|
|
|
|
|
<TextBlock Style="{StaticResource CommonTextStyle}" Text="天向加速度:" />
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="9"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Style="{StaticResource CommonTextStyle}"
|
|
|
|
|
Text="{Binding Beacon.BasicSite_Sky_A, StringFormat={}{0}m/s²}" />
|
2023-12-23 03:35:57 +00:00
|
|
|
</Grid>
|
|
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|