20230724_MBJC_upperpc/Views/FirstPageBuoyControl.xaml

144 lines
6.4 KiB
Plaintext
Raw Normal View History

2023-12-20 09:58:16 +00:00
<UserControl
x:Class="_20230724_MBJC_upperpc.Views.FirstPageBuoyControl"
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:_20230724_MBJC_upperpc.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="500"
d:DesignWidth="700"
mc:Ignorable="d">
2023-12-18 09:31:28 +00:00
<Grid>
<Grid.ColumnDefinitions>
2023-12-20 09:58:16 +00:00
<ColumnDefinition Width="3*" />
<ColumnDefinition Width="2*" />
2023-12-18 09:31:28 +00:00
</Grid.ColumnDefinitions>
2023-12-20 09:58:16 +00:00
<local:BuoyModel x:Name="BuoyModel" Grid.Column="0" />
<Border Grid.Column="1" CornerRadius="10">
<Border.Background>
<SolidColorBrush Opacity="0.4" Color="SkyBlue" />
</Border.Background>
<Grid Margin="0,10,0,0">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<StackPanel
Grid.Row="0"
Margin="5,0,0,0"
VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock
Name="DateTime"
FontSize="{Binding ElementName=TextJD, Path=FontSize}"
Foreground="{Binding ElementName=TextJD, Path=Foreground}" />
</StackPanel>
<StackPanel
Grid.Row="1"
Margin="5,0,0,0"
VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock
FontSize="{Binding ElementName=TextJD, Path=FontSize}"
Foreground="{Binding ElementName=TextJD, Path=Foreground}"
Text="基阵经度:" />
<TextBlock Name="TextJD" Text="119°2731″" />
</StackPanel>
<StackPanel
Grid.Row="2"
Margin="5,0,0,0"
VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock
FontSize="{Binding ElementName=TextJD, Path=FontSize}"
Foreground="{Binding ElementName=TextJD, Path=Foreground}"
Text="基阵纬度:" />
<TextBlock
Name="TextWD"
FontSize="{Binding ElementName=TextJD, Path=FontSize}"
Foreground="{Binding ElementName=TextJD, Path=Foreground}"
Text="27°3045″" />
</StackPanel>
<StackPanel
Grid.Row="3"
Margin="5,0,0,0"
VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock
FontSize="{Binding ElementName=TextJD, Path=FontSize}"
Foreground="{Binding ElementName=TextJD, Path=Foreground}"
Text="基阵深度:" />
<TextBlock
Name="TextSD"
FontSize="{Binding ElementName=TextJD, Path=FontSize}"
Foreground="{Binding ElementName=TextJD, Path=Foreground}"
Text="3米" />
</StackPanel>
<StackPanel
Grid.Row="4"
Margin="5,0,0,0"
VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock
FontSize="{Binding ElementName=TextJD, Path=FontSize}"
Foreground="{Binding ElementName=TextJD, Path=Foreground}"
Text="基阵翻滚角:" />
<TextBlock
Name="TextFGJ"
FontSize="{Binding ElementName=TextJD, Path=FontSize}"
Foreground="{Binding ElementName=TextJD, Path=Foreground}"
Text="40°" />
</StackPanel>
<StackPanel
Grid.Row="5"
Margin="5,0,0,0"
VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock
FontSize="{Binding ElementName=TextJD, Path=FontSize}"
Foreground="{Binding ElementName=TextJD, Path=Foreground}"
Text="基阵俯仰角:" />
<TextBlock
Name="TextFYJ"
FontSize="{Binding ElementName=TextJD, Path=FontSize}"
Foreground="{Binding ElementName=TextJD, Path=Foreground}"
Text="40°" />
</StackPanel>
<StackPanel
Grid.Row="6"
Margin="5,0,0,0"
VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock
FontSize="{Binding ElementName=TextJD, Path=FontSize}"
Foreground="{Binding ElementName=TextJD, Path=Foreground}"
Text="基阵偏航角角:" />
<TextBlock
Name="TextPHJ"
FontSize="{Binding ElementName=TextJD, Path=FontSize}"
Foreground="{Binding ElementName=TextJD, Path=Foreground}"
Text="40°" />
</StackPanel>
<TextBox
Name="TextAlarm"
Grid.Row="7"
Margin="5,5,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
FontSize="{Binding ElementName=TextJD, Path=FontSize}"
Foreground="Red"
MaxLines="5"
Text="告警:当前基阵航向角偏移"
TextWrapping="Wrap" />
</Grid>
</Border>
2023-12-18 09:31:28 +00:00
</Grid>
</UserControl>