20230724_MBJC_upperpc/Views/FirstPageView.xaml

367 lines
18 KiB
Plaintext
Raw Normal View History

2023-11-15 05:34:33 +00:00
<UserControl
x:Class="_20230724_MBJC_upperpc.Views.FirstPageView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
2023-12-20 09:58:16 +00:00
xmlns:converters="clr-namespace:_20230724_MBJC_upperpc.Common"
2023-11-15 05:34:33 +00:00
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
2024-01-17 01:24:32 +00:00
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
2023-11-15 05:34:33 +00:00
xmlns:local="clr-namespace:_20230724_MBJC_upperpc.Views"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
2023-11-16 08:18:55 +00:00
xmlns:tool="clr-namespace:_3DTools;assembly=3DTools"
2023-12-20 09:58:16 +00:00
Name="Window"
2023-12-18 09:31:28 +00:00
d:DesignHeight="900"
d:DesignWidth="1600"
2023-11-15 05:34:33 +00:00
mc:Ignorable="d">
2023-12-20 09:58:16 +00:00
<UserControl.Resources>
<ResourceDictionary>
<converters:AspectRatioConverter x:Key="AspectRatioConverter" />
<converters:BottomCenterYConverter x:Key="BottomCenterYConverter" />
<converters:CenterConverterX x:Key="CenterConverterX" />
<converters:CenterConverterX_Half x:Key="CenterConverterX_Half" />
</ResourceDictionary>
</UserControl.Resources>
<Canvas>
<!-- 浮标本体 -->
<local:FirstPageBuoyControl
x:Name="Buoy"
2024-01-17 01:24:32 +00:00
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=3}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=2}"
Panel.ZIndex="1"
2024-01-19 05:04:06 +00:00
Beacon="{Binding Beacon1.Beacon}"
2024-01-17 01:24:32 +00:00
ButtonClick="Buoy_ButtonClick"
2023-12-20 09:58:16 +00:00
TBDEnable="False"
2024-01-17 01:24:32 +00:00
Text_Color="#99FFFFFF">
2023-12-20 09:58:16 +00:00
<Canvas.Left>
<MultiBinding Converter="{StaticResource CenterConverterX_Half}">
<Binding ElementName="Window" Path="ActualWidth" />
<Binding ElementName="Buoy" Path="ActualWidth" />
</MultiBinding>
</Canvas.Left>
<Canvas.Top>
<MultiBinding Converter="{StaticResource CenterConverterX_Half}">
<Binding ElementName="Window" Path="ActualHeight" />
<Binding ElementName="Buoy" Path="ActualHeight" />
</MultiBinding>
</Canvas.Top>
</local:FirstPageBuoyControl>
<!-- 锚1 -->
2024-01-22 05:36:57 +00:00
2023-12-20 09:58:16 +00:00
<local:FirstPageAnchorControl
x:Name="Anchor1"
Canvas.Top="0"
2024-01-17 01:24:32 +00:00
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=8}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4.5}"
Panel.ZIndex="1"
2023-12-20 09:58:16 +00:00
AlarmInfo="告警:文件传输失败"
2024-01-19 05:04:06 +00:00
Beacon="{Binding Beacon1.Beacon}"
2024-01-17 01:24:32 +00:00
ButtonClick="Anchor1_ButtonClick"
2024-01-19 05:04:06 +00:00
Model_Visibility="{Binding Beacon1.Model_Visibility}"
2023-12-20 09:58:16 +00:00
TBDEnable="False"
2024-01-17 01:24:32 +00:00
Text_Color="#99FFFFFF">
2023-12-20 09:58:16 +00:00
<Canvas.Left>
<MultiBinding Converter="{StaticResource CenterConverterX}">
<Binding ElementName="Window" Path="ActualWidth" />
<Binding ElementName="Anchor1" Path="ActualWidth" />
</MultiBinding>
</Canvas.Left>
</local:FirstPageAnchorControl>
2024-01-22 05:36:57 +00:00
2023-12-20 09:58:16 +00:00
<!-- 锚2 -->
2024-01-22 05:36:57 +00:00
2023-12-20 09:58:16 +00:00
<local:FirstPageAnchorControl
x:Name="Anchor2"
Canvas.Top="0"
2024-01-17 01:24:32 +00:00
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=8}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4.5}"
Panel.ZIndex="1"
2023-12-20 09:58:16 +00:00
AlarmInfo="告警:文件传输失败"
2024-01-19 05:04:06 +00:00
Beacon="{Binding Beacon2.Beacon}"
2024-01-17 01:24:32 +00:00
ButtonClick="Anchor2_ButtonClick"
2024-01-19 05:04:06 +00:00
Model_Visibility="{Binding Beacon2.Model_Visibility}"
2023-12-20 09:58:16 +00:00
TBDEnable="False"
2024-01-17 01:24:32 +00:00
Text_Color="#99FFFFFF">
2023-12-20 09:58:16 +00:00
<Canvas.Left>
<MultiBinding Converter="{StaticResource CenterConverterX}">
<Binding ElementName="Window" Path="ActualWidth" />
</MultiBinding>
</Canvas.Left>
</local:FirstPageAnchorControl>
2024-01-22 05:36:57 +00:00
2023-12-20 09:58:16 +00:00
<!-- 锚3 -->
2024-01-22 05:36:57 +00:00
2023-12-20 09:58:16 +00:00
<local:FirstPageAnchorControl
x:Name="Anchor3"
Canvas.Left="0"
2024-01-17 01:24:32 +00:00
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=8}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4.5}"
2023-12-20 09:58:16 +00:00
Margin="20,0,0,0"
AlarmInfo="告警:文件传输失败"
2024-01-19 05:04:06 +00:00
Beacon="{Binding Beacon3.Beacon}"
2024-01-17 01:24:32 +00:00
ButtonClick="Anchor3_ButtonClick"
2024-01-19 05:04:06 +00:00
Model_Visibility="{Binding Beacon3.Model_Visibility}"
2023-12-20 09:58:16 +00:00
TBDEnable="False"
2024-01-17 01:24:32 +00:00
Text_Color="#99FFFFFF">
2023-12-20 09:58:16 +00:00
<Canvas.Top>
<MultiBinding Converter="{StaticResource CenterConverterX}">
<Binding ElementName="Window" Path="ActualHeight" />
<Binding ElementName="Anchor3" Path="ActualHeight" />
</MultiBinding>
</Canvas.Top>
</local:FirstPageAnchorControl>
2024-01-22 05:36:57 +00:00
2023-12-20 09:58:16 +00:00
<!-- 锚4 -->
2024-01-22 05:36:57 +00:00
2023-12-20 09:58:16 +00:00
<local:FirstPageAnchorControl
x:Name="Anchor4"
Canvas.Left="0"
2024-01-17 01:24:32 +00:00
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=8}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4.5}"
2023-12-20 09:58:16 +00:00
Margin="20,0,0,0"
AlarmInfo="告警:文件传输失败"
2024-01-19 05:04:06 +00:00
Beacon="{Binding Beacon4.Beacon}"
2024-01-17 01:24:32 +00:00
ButtonClick="Anchor4_ButtonClick"
2024-01-19 05:04:06 +00:00
Model_Visibility="{Binding Beacon4.Model_Visibility}"
2023-12-20 09:58:16 +00:00
TBDEnable="False"
2024-01-17 01:24:32 +00:00
Text_Color="#99FFFFFF">
2023-12-20 09:58:16 +00:00
<Canvas.Top>
<MultiBinding Converter="{StaticResource CenterConverterX}">
<Binding ElementName="Window" Path="ActualHeight" />
</MultiBinding>
</Canvas.Top>
</local:FirstPageAnchorControl>
2024-01-22 05:36:57 +00:00
2023-12-20 09:58:16 +00:00
<!-- 锚5 -->
2024-01-22 05:36:57 +00:00
2023-12-20 09:58:16 +00:00
<local:FirstPageAnchorControl
x:Name="Anchor5"
2024-01-17 01:24:32 +00:00
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=8}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4.5}"
2023-12-20 09:58:16 +00:00
AlarmInfo="告警:文件传输失败"
2024-01-19 05:04:06 +00:00
Beacon="{Binding Beacon5.Beacon}"
2024-01-17 01:24:32 +00:00
ButtonClick="Anchor5_ButtonClick"
2024-01-19 05:04:06 +00:00
Model_Visibility="{Binding Beacon5.Model_Visibility}"
2023-12-20 09:58:16 +00:00
TBDEnable="False"
2024-01-17 01:24:32 +00:00
Text_Color="#99FFFFFF">
2023-12-20 09:58:16 +00:00
<Canvas.Top>
<MultiBinding Converter="{StaticResource CenterConverterX}">
<Binding ElementName="Window" Path="ActualHeight" />
<Binding ElementName="Anchor5" Path="ActualHeight" />
</MultiBinding>
</Canvas.Top>
<Canvas.Left>
<MultiBinding Converter="{StaticResource CenterConverterX}" ConverterParameter="RightBottom">
<Binding ElementName="Window" Path="ActualWidth" />
<Binding ElementName="Anchor5" Path="ActualWidth" />
</MultiBinding>
</Canvas.Left>
</local:FirstPageAnchorControl>
2024-01-22 05:36:57 +00:00
2023-12-20 09:58:16 +00:00
<!-- 锚6 -->
2024-01-22 05:36:57 +00:00
2023-12-20 09:58:16 +00:00
<local:FirstPageAnchorControl
x:Name="Anchor6"
2024-01-17 01:24:32 +00:00
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=8}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4.5}"
2023-12-20 09:58:16 +00:00
AlarmInfo="告警:文件传输失败"
2024-01-19 05:04:06 +00:00
Beacon="{Binding Beacon6.Beacon}"
2024-01-17 01:24:32 +00:00
ButtonClick="Anchor6_ButtonClick"
2024-01-19 05:04:06 +00:00
Model_Visibility="{Binding Beacon6.Model_Visibility}"
2023-12-20 09:58:16 +00:00
TBDEnable="False"
2024-01-17 01:24:32 +00:00
Text_Color="#99FFFFFF">
2023-12-20 09:58:16 +00:00
<Canvas.Top>
<MultiBinding Converter="{StaticResource CenterConverterX}">
<Binding ElementName="Window" Path="ActualHeight" />
</MultiBinding>
</Canvas.Top>
<Canvas.Left>
<MultiBinding Converter="{StaticResource CenterConverterX}" ConverterParameter="RightBottom">
<Binding ElementName="Window" Path="ActualWidth" />
<Binding ElementName="Anchor6" Path="ActualWidth" />
</MultiBinding>
</Canvas.Left>
</local:FirstPageAnchorControl>
2024-01-22 05:36:57 +00:00
2023-12-20 09:58:16 +00:00
<!-- 信标1 -->
2024-01-22 05:36:57 +00:00
2023-12-20 09:58:16 +00:00
<local:FirstPageAnchorControl
x:Name="Support1"
2024-01-17 01:24:32 +00:00
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=8}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4.5}"
2023-12-20 09:58:16 +00:00
AlarmInfo="告警:文件传输失败"
2024-01-19 05:04:06 +00:00
Beacon="{Binding Beacon7.Beacon}"
2024-01-17 01:24:32 +00:00
ButtonClick="Support1_ButtonClick"
2024-01-19 05:04:06 +00:00
Model_Visibility="{Binding Beacon7.Model_Visibility}"
2023-12-20 09:58:16 +00:00
TBDEnable="False"
2024-01-17 01:24:32 +00:00
Text_Color="#99FFFFFF">
2023-12-20 09:58:16 +00:00
<Canvas.Top>
<MultiBinding Converter="{StaticResource CenterConverterX}" ConverterParameter="RightBottom">
<Binding ElementName="Window" Path="ActualHeight" />
<Binding ElementName="Support1" Path="ActualHeight" />
</MultiBinding>
</Canvas.Top>
<Canvas.Left>
<MultiBinding Converter="{StaticResource CenterConverterX}">
<Binding ElementName="Window" Path="ActualWidth" />
<Binding ElementName="Support1" Path="ActualWidth" />
</MultiBinding>
</Canvas.Left>
</local:FirstPageAnchorControl>
2024-01-22 05:36:57 +00:00
2023-12-20 09:58:16 +00:00
<!-- 信标2 -->
2024-01-22 05:36:57 +00:00
2023-12-20 09:58:16 +00:00
<local:FirstPageAnchorControl
x:Name="Support2"
2024-01-17 01:24:32 +00:00
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=8}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4.5}"
2023-12-20 09:58:16 +00:00
AlarmInfo="告警:文件传输失败"
2024-01-19 05:04:06 +00:00
Beacon="{Binding Beacon8.Beacon}"
2024-01-17 01:24:32 +00:00
ButtonClick="Support2_ButtonClick"
2024-01-19 05:04:06 +00:00
Model_Visibility="{Binding Beacon8.Model_Visibility}"
2023-12-20 09:58:16 +00:00
TBDEnable="False"
2024-01-17 01:24:32 +00:00
Text_Color="#99FFFFFF">
2023-12-20 09:58:16 +00:00
<Canvas.Top>
<MultiBinding Converter="{StaticResource CenterConverterX}" ConverterParameter="RightBottom">
<Binding ElementName="Window" Path="ActualHeight" />
<Binding ElementName="Support1" Path="ActualHeight" />
</MultiBinding>
</Canvas.Top>
<Canvas.Left>
<MultiBinding Converter="{StaticResource CenterConverterX}">
<Binding ElementName="Window" Path="ActualWidth" />
</MultiBinding>
</Canvas.Left>
2024-01-22 05:36:57 +00:00
</local:FirstPageAnchorControl>
2023-12-20 09:58:16 +00:00
2024-01-22 05:36:57 +00:00
<Polyline
2024-01-17 01:24:32 +00:00
Panel.ZIndex="0"
Opacity="0.3"
Stroke="SkyBlue"
StrokeThickness="10">
2023-12-20 09:58:16 +00:00
<Polyline.Points>
<MultiBinding Converter="{StaticResource BottomCenterYConverter}" ConverterParameter="1">
<Binding ElementName="Buoy" Path="(Canvas.Left)" />
<Binding ElementName="Buoy" Path="ActualWidth" />
<Binding ElementName="Buoy" Path="ActualHeight" />
<Binding ElementName="Buoy" Path="(Canvas.Top)" />
<Binding ElementName="Anchor1" Path="(Canvas.Left)" />
<Binding ElementName="Anchor1" Path="ActualWidth" />
<Binding ElementName="Anchor1" Path="ActualHeight" />
<Binding ElementName="Anchor1" Path="(Canvas.Top)" />
</MultiBinding>
</Polyline.Points>
</Polyline>
2024-01-17 01:24:32 +00:00
<Polyline
Panel.ZIndex="0"
Opacity="0.3"
Stroke="SkyBlue"
StrokeThickness="10">
2023-12-20 09:58:16 +00:00
<Polyline.Points>
<MultiBinding Converter="{StaticResource BottomCenterYConverter}" ConverterParameter="2">
<Binding ElementName="Buoy" Path="(Canvas.Left)" />
<Binding ElementName="Buoy" Path="ActualWidth" />
<Binding ElementName="Buoy" Path="ActualHeight" />
<Binding ElementName="Buoy" Path="(Canvas.Top)" />
<Binding ElementName="Anchor2" Path="(Canvas.Left)" />
<Binding ElementName="Anchor2" Path="ActualWidth" />
<Binding ElementName="Anchor2" Path="ActualHeight" />
<Binding ElementName="Anchor2" Path="(Canvas.Top)" />
</MultiBinding>
</Polyline.Points>
</Polyline>
<Polyline Stroke="SkyBlue" StrokeThickness="10">
<Polyline.Points>
<MultiBinding Converter="{StaticResource BottomCenterYConverter}" ConverterParameter="3">
<Binding ElementName="Buoy" Path="(Canvas.Left)" />
<Binding ElementName="Buoy" Path="ActualWidth" />
<Binding ElementName="Buoy" Path="ActualHeight" />
<Binding ElementName="Buoy" Path="(Canvas.Top)" />
<Binding ElementName="Anchor3" Path="(Canvas.Left)" />
<Binding ElementName="Anchor3" Path="ActualWidth" />
<Binding ElementName="Anchor3" Path="ActualHeight" />
<Binding ElementName="Anchor3" Path="(Canvas.Top)" />
</MultiBinding>
</Polyline.Points>
</Polyline>
<Polyline Stroke="SkyBlue" StrokeThickness="10">
<Polyline.Points>
<MultiBinding Converter="{StaticResource BottomCenterYConverter}" ConverterParameter="4">
<Binding ElementName="Buoy" Path="(Canvas.Left)" />
<Binding ElementName="Buoy" Path="ActualWidth" />
<Binding ElementName="Buoy" Path="ActualHeight" />
<Binding ElementName="Buoy" Path="(Canvas.Top)" />
<Binding ElementName="Anchor4" Path="(Canvas.Left)" />
<Binding ElementName="Anchor4" Path="ActualWidth" />
<Binding ElementName="Anchor4" Path="ActualHeight" />
<Binding ElementName="Anchor4" Path="(Canvas.Top)" />
</MultiBinding>
</Polyline.Points>
</Polyline>
<Polyline Stroke="SkyBlue" StrokeThickness="10">
<Polyline.Points>
<MultiBinding Converter="{StaticResource BottomCenterYConverter}" ConverterParameter="5">
<Binding ElementName="Buoy" Path="(Canvas.Left)" />
<Binding ElementName="Buoy" Path="ActualWidth" />
<Binding ElementName="Buoy" Path="ActualHeight" />
<Binding ElementName="Buoy" Path="(Canvas.Top)" />
<Binding ElementName="Anchor5" Path="(Canvas.Left)" />
<Binding ElementName="Anchor5" Path="ActualWidth" />
<Binding ElementName="Anchor5" Path="ActualHeight" />
<Binding ElementName="Anchor5" Path="(Canvas.Top)" />
</MultiBinding>
</Polyline.Points>
</Polyline>
<Polyline Stroke="SkyBlue" StrokeThickness="10">
<Polyline.Points>
<MultiBinding Converter="{StaticResource BottomCenterYConverter}" ConverterParameter="6">
<Binding ElementName="Buoy" Path="(Canvas.Left)" />
<Binding ElementName="Buoy" Path="ActualWidth" />
<Binding ElementName="Buoy" Path="ActualHeight" />
<Binding ElementName="Buoy" Path="(Canvas.Top)" />
<Binding ElementName="Anchor6" Path="(Canvas.Left)" />
<Binding ElementName="Anchor6" Path="ActualWidth" />
<Binding ElementName="Anchor6" Path="ActualHeight" />
<Binding ElementName="Anchor6" Path="(Canvas.Top)" />
</MultiBinding>
</Polyline.Points>
</Polyline>
<Polyline
Stroke="SkyBlue"
StrokeDashArray="1,2"
StrokeDashCap="Round"
StrokeThickness="10">
<Polyline.Points>
<MultiBinding Converter="{StaticResource BottomCenterYConverter}" ConverterParameter="7">
<Binding ElementName="Buoy" Path="(Canvas.Left)" />
<Binding ElementName="Buoy" Path="ActualWidth" />
<Binding ElementName="Buoy" Path="ActualHeight" />
<Binding ElementName="Buoy" Path="(Canvas.Top)" />
<Binding ElementName="Support1" Path="(Canvas.Left)" />
<Binding ElementName="Support1" Path="ActualWidth" />
<Binding ElementName="Support1" Path="ActualHeight" />
<Binding ElementName="Support1" Path="(Canvas.Top)" />
</MultiBinding>
</Polyline.Points>
</Polyline>
<Polyline
Stroke="SkyBlue"
StrokeDashArray="1,2"
StrokeDashCap="Round"
StrokeThickness="10">
<Polyline.Points>
<MultiBinding Converter="{StaticResource BottomCenterYConverter}" ConverterParameter="8">
<Binding ElementName="Buoy" Path="(Canvas.Left)" />
<Binding ElementName="Buoy" Path="ActualWidth" />
<Binding ElementName="Buoy" Path="ActualHeight" />
<Binding ElementName="Buoy" Path="(Canvas.Top)" />
<Binding ElementName="Support2" Path="(Canvas.Left)" />
<Binding ElementName="Support2" Path="ActualWidth" />
<Binding ElementName="Support2" Path="ActualHeight" />
<Binding ElementName="Support2" Path="(Canvas.Top)" />
</MultiBinding>
</Polyline.Points>
2024-01-22 05:36:57 +00:00
</Polyline>
2023-12-20 09:58:16 +00:00
</Canvas>
2023-11-15 05:34:33 +00:00
</UserControl>