20230724_MBJC_upperpc/Views/FirstPageView.xaml

397 lines
20 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"
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"
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=3}"
AlarmInfo="告警:文件传输失败"
Beacon="{Binding Beacon}"
Font_Size="15"
TBDEnable="False"
Text_Color="Black">
<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 -->
<local:FirstPageAnchorControl
x:Name="Anchor1"
Canvas.Top="0"
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=6}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=5}"
AlarmInfo="告警:文件传输失败"
Beacon="{Binding Beacon}"
Font_Size="10"
Model_Position="1"
Model_Visibility="1"
TBDEnable="False"
Text_Color="Black">
<Canvas.Left>
<MultiBinding Converter="{StaticResource CenterConverterX}">
<Binding ElementName="Window" Path="ActualWidth" />
<Binding ElementName="Anchor1" Path="ActualWidth" />
</MultiBinding>
</Canvas.Left>
</local:FirstPageAnchorControl>
<!-- 锚2 -->
<local:FirstPageAnchorControl
x:Name="Anchor2"
Canvas.Top="0"
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=6}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=5}"
AlarmInfo="告警:文件传输失败"
Beacon="{Binding Beacon}"
Font_Size="10"
2023-12-23 03:35:57 +00:00
Model_Position="0"
2023-12-20 09:58:16 +00:00
Model_Visibility="1"
TBDEnable="False"
Text_Color="Black">
<Canvas.Left>
<MultiBinding Converter="{StaticResource CenterConverterX}">
<Binding ElementName="Window" Path="ActualWidth" />
</MultiBinding>
</Canvas.Left>
</local:FirstPageAnchorControl>
<!-- 锚3 -->
<local:FirstPageAnchorControl
x:Name="Anchor3"
Canvas.Left="0"
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=6}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=5}"
Margin="20,0,0,0"
AlarmInfo="告警:文件传输失败"
Beacon="{Binding Beacon}"
Font_Size="10"
Model_Position="1"
Model_Visibility="1"
TBDEnable="False"
Text_Color="Black">
<Canvas.Top>
<MultiBinding Converter="{StaticResource CenterConverterX}">
<Binding ElementName="Window" Path="ActualHeight" />
<Binding ElementName="Anchor3" Path="ActualHeight" />
</MultiBinding>
</Canvas.Top>
</local:FirstPageAnchorControl>
<!-- 锚4 -->
<local:FirstPageAnchorControl
x:Name="Anchor4"
Canvas.Left="0"
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=6}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=5}"
Margin="20,0,0,0"
AlarmInfo="告警:文件传输失败"
Beacon="{Binding Beacon}"
Font_Size="10"
Model_Position="1"
Model_Visibility="1"
TBDEnable="False"
Text_Color="Black">
<Canvas.Top>
<MultiBinding Converter="{StaticResource CenterConverterX}">
<Binding ElementName="Window" Path="ActualHeight" />
</MultiBinding>
</Canvas.Top>
</local:FirstPageAnchorControl>
<!-- 锚5 -->
<local:FirstPageAnchorControl
x:Name="Anchor5"
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=6}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=5}"
AlarmInfo="告警:文件传输失败"
Beacon="{Binding Beacon}"
Font_Size="10"
2023-12-23 03:35:57 +00:00
Model_Position="0"
2023-12-20 09:58:16 +00:00
Model_Visibility="1"
TBDEnable="False"
Text_Color="Black">
<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>
<!-- 锚6 -->
<local:FirstPageAnchorControl
x:Name="Anchor6"
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=6}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=5}"
AlarmInfo="告警:文件传输失败"
Beacon="{Binding Beacon}"
Font_Size="10"
2023-12-23 03:35:57 +00:00
Model_Position="0"
2023-12-20 09:58:16 +00:00
Model_Visibility="1"
TBDEnable="False"
Text_Color="Black">
<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>
<!-- 信标1 -->
<local:FirstPageAnchorControl
x:Name="Support1"
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=6}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=5}"
AlarmInfo="告警:文件传输失败"
Beacon="{Binding Beacon}"
Font_Size="10"
2023-12-23 03:35:57 +00:00
Model_Position="1"
2023-12-20 09:58:16 +00:00
Model_Visibility="2"
TBDEnable="False"
Text_Color="Black">
<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>
<!-- 信标2 -->
<local:FirstPageAnchorControl
x:Name="Support2"
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=6}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=5}"
AlarmInfo="告警:文件传输失败"
Beacon="{Binding Beacon}"
Font_Size="10"
2023-12-23 03:35:57 +00:00
Model_Position="0"
2023-12-20 09:58:16 +00:00
Model_Visibility="2"
TBDEnable="False"
Text_Color="Black">
<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>
</local:FirstPageAnchorControl>
<!-- 信标1 -->
<!--
<local:FirstPageSupportControl
x:Name="Support1"
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=6}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=5}"
AlarmInfo="告警:文件传输失败"
Beacon="{Binding Beacon}"
Font_Size="10"
TBDEnable="False"
Text_Color="Black">
<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:FirstPageSupportControl>
-->
<!-- 信标2 -->
<!--
<local:FirstPageSupportControl
x:Name="Support2"
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=6}"
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=5}"
AlarmInfo="告警:文件传输失败"
Beacon="{Binding Beacon}"
Font_Size="10"
TBDEnable="False"
Text_Color="Black">
<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>
</local:FirstPageSupportControl>-->
<Polyline Stroke="SkyBlue" StrokeThickness="10">
<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>
<Polyline Stroke="SkyBlue" StrokeThickness="10">
<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>
</Polyline>
</Canvas>
2023-11-15 05:34:33 +00:00
</UserControl>