20230724_MBJC_upperpc/Views/FirstPageView.xaml

511 lines
25 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" />
2024-03-06 09:46:55 +00:00
<Style x:Key="StationChangeStyle" TargetType="RadioButton">
<Setter Property="Width" Value="50" />
<Setter Property="Height" Value="22" />
<Setter Property="Foreground" Value="#888" />
<Setter Property="Background" Value="#DDD" />
<Setter Property="FontSize" Value="11" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RadioButton">
<Border Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter Property="Background" Value="Orange" />
<Setter Property="Foreground" Value="White" />
</Trigger>
</Style.Triggers>
</Style>
2023-12-20 09:58:16 +00:00
</ResourceDictionary>
2024-03-06 09:46:55 +00:00
2023-12-20 09:58:16 +00:00
</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"
2024-02-20 00:59:05 +00:00
Panel.ZIndex="1"
2023-12-20 09:58:16 +00:00
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"
2024-02-20 00:59:05 +00:00
Panel.ZIndex="1"
2023-12-20 09:58:16 +00:00
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}"
2024-02-20 00:59:05 +00:00
Panel.ZIndex="1"
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}"
2024-02-20 00:59:05 +00:00
Panel.ZIndex="1"
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}"
2024-02-20 00:59:05 +00:00
Panel.ZIndex="1"
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}"
2024-02-20 00:59:05 +00:00
Panel.ZIndex="1"
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>
2024-02-20 00:59:05 +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="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>
2024-02-20 00:59:05 +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="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>
2024-02-20 00:59:05 +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="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>
2024-02-20 00:59:05 +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="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
2024-02-20 00:59:05 +00:00
Panel.ZIndex="0"
Opacity="0.3"
2023-12-20 09:58:16 +00:00
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
2024-02-20 00:59:05 +00:00
Panel.ZIndex="0"
Opacity="0.3"
2023-12-20 09:58:16 +00:00
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>
2024-03-06 09:46:55 +00:00
<Grid
Canvas.Top="0"
Canvas.Right="0"
2024-03-13 07:02:46 +00:00
Width="{Binding ElementName=Window, Path=ActualWidth, Converter={StaticResource AspectRatioConverter}, ConverterParameter=3}"
2024-03-06 09:46:55 +00:00
Height="{Binding ElementName=Window, Path=ActualHeight, Converter={StaticResource AspectRatioConverter}, ConverterParameter=4}">
<Grid.RowDefinitions>
<RowDefinition Height="23" />
<RowDefinition />
</Grid.RowDefinitions>
2024-03-13 07:02:46 +00:00
<Grid>
<TextBlock
HorizontalAlignment="Left"
VerticalAlignment="Center"
Foreground="#99FFFFFF"
Text="告警记录" />
<StackPanel
HorizontalAlignment="Right"
VerticalAlignment="Top"
Orientation="Horizontal">
<RadioButton
Command="{Binding AlarmInfoCommand}"
CommandParameter="1"
Content="近一天"
IsChecked="True"
Style="{DynamicResource StationChangeStyle}" />
<RadioButton
Command="{Binding AlarmInfoCommand}"
CommandParameter="2"
Content="近一周"
Style="{DynamicResource StationChangeStyle}" />
<RadioButton
Command="{Binding AlarmInfoCommand}"
CommandParameter="3"
Content="近一月"
Style="{DynamicResource StationChangeStyle}" />
</StackPanel>
</Grid>
<ScrollViewer Grid.Row="1">
<ItemsControl
Name="AlarmInfo"
Canvas.Top="0"
Canvas.Right="0"
ItemsSource="{Binding AlarmInfoList}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid Height="23">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20" />
<ColumnDefinition Width="30" />
<ColumnDefinition Width="1*" />
<ColumnDefinition Width="0.5*" />
<ColumnDefinition Width="1.5*" />
</Grid.ColumnDefinitions>
<Border
Width="6"
Height="6"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Background="IndianRed"
CornerRadius="3" />
<TextBlock
Grid.Column="1"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontWeight="Normal"
Foreground="#992BEDF1"
Text="{Binding StationID}" />
<TextBlock
Grid.Column="2"
VerticalAlignment="Center"
FontWeight="Normal"
Foreground="#992BEDF1"
Text="{Binding RecordTime, StringFormat=yyyy/MM/dd HH:mm:ss}" />
<TextBlock
Grid.Column="3"
VerticalAlignment="Center"
FontWeight="Normal"
Foreground="#992BEDF1"
Text="{Binding ParaName}" />
<TextBlock
Grid.Column="4"
HorizontalAlignment="Left"
VerticalAlignment="Center"
FontWeight="Normal"
Foreground="#992BEDF1"
Text="{Binding ParaState}" />
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
2024-03-06 09:46:55 +00:00
</Grid>
2023-12-20 09:58:16 +00:00
</Canvas>
2023-11-15 05:34:33 +00:00
</UserControl>