2023-12-20 09:58:16 +00:00
|
|
|
|
<UserControl
|
|
|
|
|
|
x:Class="_20230724_MBJC_upperpc.Views.FirstPageAnchorControl"
|
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2024-01-17 01:24:32 +00:00
|
|
|
|
xmlns:converters="clr-namespace:_20230724_MBJC_upperpc.Common"
|
2023-12-20 09:58:16 +00:00
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
|
xmlns:local="clr-namespace:_20230724_MBJC_upperpc.Views"
|
2024-01-17 01:24:32 +00:00
|
|
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
2023-12-20 09:58:16 +00:00
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2024-01-17 01:24:32 +00:00
|
|
|
|
Name="Window"
|
2023-12-20 09:58:16 +00:00
|
|
|
|
d:DesignHeight="500"
|
2024-01-17 01:24:32 +00:00
|
|
|
|
d:DesignWidth="500"
|
2023-12-20 09:58:16 +00:00
|
|
|
|
FontSize="10"
|
|
|
|
|
|
mc:Ignorable="d">
|
2024-01-17 01:24:32 +00:00
|
|
|
|
<UserControl.Resources>
|
|
|
|
|
|
<ResourceDictionary>
|
|
|
|
|
|
<converters:AspectRatioConverter x:Key="AspectRatioConverter" />
|
|
|
|
|
|
</ResourceDictionary>
|
|
|
|
|
|
</UserControl.Resources>
|
2023-12-20 09:58:16 +00:00
|
|
|
|
<Grid x:Name="grid">
|
2024-01-17 01:24:32 +00:00
|
|
|
|
<local:AnchorModel x:Name="AnchorModel" Visibility="Visible" />
|
2024-01-22 09:48:13 +00:00
|
|
|
|
<local:SupportModel
|
|
|
|
|
|
x:Name="SupportModel"
|
|
|
|
|
|
Rotate_X="0"
|
|
|
|
|
|
Rotate_Y="0"
|
|
|
|
|
|
Rotate_Z="0"
|
|
|
|
|
|
Visibility="Visible" />
|
2023-12-20 09:58:16 +00:00
|
|
|
|
<Border
|
|
|
|
|
|
Name="Data_Area"
|
2024-01-17 01:24:32 +00:00
|
|
|
|
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4}"
|
|
|
|
|
|
Margin="10,0,10,0"
|
|
|
|
|
|
VerticalAlignment="Bottom"
|
2023-12-20 09:58:16 +00:00
|
|
|
|
CornerRadius="10">
|
2024-01-17 01:24:32 +00:00
|
|
|
|
<Viewbox>
|
|
|
|
|
|
<Grid>
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
|
<ColumnDefinition />
|
|
|
|
|
|
<ColumnDefinition />
|
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
|
Margin="5,0,0,0"
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
|
Name="DateTime"
|
|
|
|
|
|
Foreground="{Binding ElementName=TextID, Path=Foreground}"
|
|
|
|
|
|
Text="2024-1-12 13:36:00" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
|
Margin="5,0,0,0"
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
|
<TextBlock Foreground="{Binding ElementName=TextID, Path=Foreground}" Text="信标ID: " />
|
|
|
|
|
|
<TextBlock Name="TextID" Text="1" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
|
Margin="5,0,0,0"
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
|
<TextBlock Foreground="{Binding ElementName=TextID, Path=Foreground}" Text="经度: " />
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
|
Name="TextJD"
|
|
|
|
|
|
Foreground="{Binding ElementName=TextID, Path=Foreground}"
|
|
|
|
|
|
Text="119°27′31″" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
|
Margin="5,0,0,0"
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
|
<TextBlock Foreground="{Binding ElementName=TextID, Path=Foreground}" Text="纬度: " />
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
|
Name="TextWD"
|
|
|
|
|
|
Foreground="{Binding ElementName=TextID, Path=Foreground}"
|
|
|
|
|
|
Text="27°30′45″" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
|
Margin="5,0,0,0"
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
|
<TextBlock Foreground="{Binding ElementName=TextID, Path=Foreground}" Text="深度: " />
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
|
Name="TextSD"
|
|
|
|
|
|
Foreground="{Binding ElementName=TextID, Path=Foreground}"
|
|
|
|
|
|
Text="9米" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
|
Margin="5,0,0,0"
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
|
<TextBlock Foreground="{Binding ElementName=TextID, Path=Foreground}" Text="距离: " />
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
|
Name="DWJL"
|
|
|
|
|
|
Foreground="{Binding ElementName=TextID, Path=Foreground}"
|
|
|
|
|
|
Text="365米" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<!--<StackPanel
|
2023-12-20 09:58:16 +00:00
|
|
|
|
Grid.Row="5"
|
|
|
|
|
|
Margin="5,0,0,0"
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
|
FontSize="{Binding ElementName=TextID, Path=FontSize}"
|
|
|
|
|
|
Foreground="{Binding ElementName=TextID, Path=Foreground}"
|
|
|
|
|
|
Text="信标横滚角:" />
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
|
Name="TextHGJ"
|
|
|
|
|
|
FontSize="{Binding ElementName=TextID, Path=FontSize}"
|
|
|
|
|
|
Foreground="{Binding ElementName=TextID, Path=Foreground}"
|
|
|
|
|
|
Text="90°" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
|
Grid.Row="6"
|
|
|
|
|
|
Margin="5,0,0,0"
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
|
FontSize="{Binding ElementName=TextID, Path=FontSize}"
|
|
|
|
|
|
Foreground="{Binding ElementName=TextID, Path=Foreground}"
|
|
|
|
|
|
Text="信标俯仰角:" />
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
|
Name="TextFYJ"
|
|
|
|
|
|
FontSize="{Binding ElementName=TextID, Path=FontSize}"
|
|
|
|
|
|
Foreground="{Binding ElementName=TextID, Path=Foreground}"
|
|
|
|
|
|
Text="90°" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel
|
|
|
|
|
|
Grid.Row="7"
|
|
|
|
|
|
Margin="5,0,0,0"
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
|
FontSize="{Binding ElementName=TextID, Path=FontSize}"
|
|
|
|
|
|
Foreground="{Binding ElementName=TextID, Path=Foreground}"
|
|
|
|
|
|
Text="信标偏航角:" />
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
|
Name="TextPHJ"
|
|
|
|
|
|
FontSize="{Binding ElementName=TextID, Path=FontSize}"
|
|
|
|
|
|
Foreground="{Binding ElementName=TextID, Path=Foreground}"
|
|
|
|
|
|
Text="90°" />
|
2024-01-17 01:24:32 +00:00
|
|
|
|
</StackPanel>-->
|
|
|
|
|
|
<!--<StackPanel
|
2023-12-20 09:58:16 +00:00
|
|
|
|
Grid.Row="9"
|
|
|
|
|
|
Margin="5,0,0,0"
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
|
FontSize="{Binding ElementName=TextID, Path=FontSize}"
|
|
|
|
|
|
Foreground="{Binding ElementName=TextID, Path=Foreground}"
|
|
|
|
|
|
Text="温度:" />
|
|
|
|
|
|
<TextBlock
|
|
|
|
|
|
Name="Temp"
|
|
|
|
|
|
FontSize="{Binding ElementName=TextID, Path=FontSize}"
|
|
|
|
|
|
Foreground="{Binding ElementName=TextID, Path=Foreground}"
|
|
|
|
|
|
Text="21℃" />
|
2024-01-17 01:24:32 +00:00
|
|
|
|
</StackPanel>-->
|
|
|
|
|
|
<!--<TextBox Name="TextAlarm" Grid.Row="9" VerticalAlignment="Top" HorizontalAlignment="Left" Text="告警:当前基阵航向角偏移" Foreground="Red" Margin="5,5,0,0" MaxLines="5" TextWrapping="Wrap" FontSize="{Binding ElementName=TextID,Path=FontSize}"/>-->
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
</Viewbox>
|
|
|
|
|
|
|
2023-12-20 09:58:16 +00:00
|
|
|
|
</Border>
|
2024-01-17 01:24:32 +00:00
|
|
|
|
<Button
|
|
|
|
|
|
x:Name="Bigger"
|
|
|
|
|
|
Width="40"
|
|
|
|
|
|
Height="40"
|
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
|
|
Click="OnButtonClick"
|
|
|
|
|
|
Style="{StaticResource MaterialDesignIconButton}"
|
|
|
|
|
|
ToolTip="详细情况">
|
|
|
|
|
|
<materialDesign:PackIcon Kind="BorderRadius" />
|
|
|
|
|
|
</Button>
|
2023-12-18 09:31:28 +00:00
|
|
|
|
</Grid>
|
|
|
|
|
|
</UserControl>
|