20230724_MBJC_upperpc/Views/FirstPageAnchorControl.xaml
2024-01-17 09:24:32 +08:00

188 lines
8.7 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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"
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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Name="Window"
d:DesignHeight="500"
d:DesignWidth="500"
FontSize="10"
mc:Ignorable="d">
<UserControl.Resources>
<ResourceDictionary>
<converters:AspectRatioConverter x:Key="AspectRatioConverter" />
</ResourceDictionary>
</UserControl.Resources>
<Grid x:Name="grid">
<local:AnchorModel x:Name="AnchorModel" Visibility="Visible" />
<local:SupportModel x:Name="SupportModel" Visibility="Collapsed" />
<Border
Name="Data_Area"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4}"
Margin="10,0,10,0"
VerticalAlignment="Bottom"
CornerRadius="10">
<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°2731″" />
</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°3045″" />
</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
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°" />
</StackPanel>-->
<!--<StackPanel
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℃" />
</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>
</Border>
<Button
x:Name="Bigger"
Width="40"
Height="40"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Click="OnButtonClick"
Style="{StaticResource MaterialDesignIconButton}"
ToolTip="详细情况">
<materialDesign:PackIcon Kind="BorderRadius" />
</Button>
</Grid>
</UserControl>