20230724_MBJC_upperpc/Views/FirstPageBuoyControl.xaml
2024-02-27 17:21:02 +08:00

133 lines
5.9 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.FirstPageBuoyControl"
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="700"
mc:Ignorable="d">
<UserControl.Resources>
<ResourceDictionary>
<converters:AspectRatioConverter x:Key="AspectRatioConverter" />
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<local:BuoyModel
x:Name="BuoyModel"
Grid.Column="0"
AnimationEnable="False"
TBDEnable="False" />
<Border
Grid.Column="1"
Width="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=3}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4}"
Margin="0,10,0,0"
HorizontalAlignment="Left"
VerticalAlignment="Top"
CornerRadius="10">
<Viewbox>
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<StackPanel
Grid.Row="0"
Margin="5,0,0,0"
VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Foreground="{Binding ElementName=TextJD, Path=Foreground}" Text="基阵经度: " />
<TextBlock Name="TextJD" Text="119°2731″" />
</StackPanel>
<StackPanel
Grid.Row="1"
Margin="5,0,0,0"
VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Foreground="{Binding ElementName=TextJD, Path=Foreground}" Text="基阵纬度: " />
<TextBlock
Name="TextWD"
Foreground="{Binding ElementName=TextJD, Path=Foreground}"
Text="27°3045″" />
</StackPanel>
<StackPanel
Grid.Row="2"
Margin="5,0,0,0"
VerticalAlignment="Center"
Orientation="Horizontal">
<TextBlock Foreground="{Binding ElementName=TextJD, Path=Foreground}" Text="基阵深度: " />
<TextBlock
Name="TextSD"
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>-->
</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>