Files
DeedyDesigner/DeedyDesigner/Deedy.Testing/JammerWindow.xaml
2025-12-25 09:51:57 +08:00

254 lines
19 KiB
XML

<Window x:Class="Deedy.Testing.JammerWindow"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Deedy.Testing"
xmlns:deedy="clr-namespace:Deedy;assembly=Deedy.Wpf" d:WindowStyle="None"
mc:Ignorable="d"
Icon="/Icons/Icon.png" WindowStartupLocation="CenterScreen"
Title="「M219型自动化干扰机」 演训指控系统" MinWidth="1600" Height="900" Foreground="{DynamicResource FGTitle}"
DataContext="{Binding RelativeSource={RelativeSource Mode=Self}}">
<Window.Resources>
<Style TargetType="{x:Type RadioButton}">
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="Background" Value="{DynamicResource BGHyaline}"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="BorderBrush" Value="White"/>
<Setter Property="BorderThickness" Value="0,0,0,1"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type RadioButton}">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsChecked" Value="True">
<Setter Property="FontSize" Value="18"/>
<Setter Property="Foreground" Value="Orange"/>
<Setter Property="BorderBrush" Value="Orange"/>
<Setter Property="BorderThickness" Value="0,0,0,4"/>
<Setter Property="Background" Value="{DynamicResource BGMenu}"/>
</Trigger>
</Style.Triggers>
</Style>
</Window.Resources>
<deedy:WindowBorder Headground="{DynamicResource BGTitle}" ButtonBase.Click="WindowBorder_ButtonClick" MenuItem.Click="WindowBorder_MenuItemClick">
<deedy:WindowBorder.Header>
<DockPanel>
<Button DockPanel.Dock="Right" Content="链接干扰机"/>
<TextBox Margin="10,0,10,0" DockPanel.Dock="Right" Width="100" Tag="55555【默认】"/>
<TextBlock DockPanel.Dock="Right" Text="通信端口" VerticalAlignment="Center" Foreground="Silver"/>
<TextBox Margin="10,0,10,0" DockPanel.Dock="Right" Width="240" Tag="192.168.8.126【默认地址】"/>
<TextBlock DockPanel.Dock="Right" Text="通信地址" VerticalAlignment="Center" Foreground="Silver"/>
<UniformGrid Rows="1" HorizontalAlignment="Center">
<RadioButton x:Name="TabYXTC" Content="žžž演训调测模式" IsChecked="{Binding IsYXTC}" MinWidth="200" d:IsChecked="True"/>
<RadioButton x:Name="TabLKZZ" Content="žž联控作战模式" IsChecked="{Binding IsLKZZ}"/>
</UniformGrid>
</DockPanel>
</deedy:WindowBorder.Header>
<DockPanel Background="{DynamicResource BGNormal}">
<DockPanel DockPanel.Dock="Right" MinWidth="640">
<Border Height="40" DockPanel.Dock="Top" Background="{DynamicResource BGHeader}" BorderBrush="{DynamicResource FGHighlight}" BorderThickness="3,0,0,0">
<DockPanel>
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal">
<TextBlock Padding="12,0,0,0" VerticalAlignment="Center" Foreground="{DynamicResource FGLable}" Text="工作模式"/>
<CheckBox Margin="12,0,12,0" Width="160" Style="{DynamicResource CheckBox_Switch}" Content="自动调度" Tag="手动控制"/>
</StackPanel>
<Border Width="40">
<Image Margin="6" Source="/Icons/Icon.png"/>
</Border>
<UniformGrid Rows="1" HorizontalAlignment="Left" Width="320">
<RadioButton Style="{DynamicResource RadioButton_TabHeader}" Content="实时状态" IsChecked="True" Padding="12,0,12,0"/>
<RadioButton Style="{DynamicResource RadioButton_TabHeader}" Content="运行日志" Padding="12,0,12,0"/>
</UniformGrid>
</DockPanel>
</Border>
<Border BorderBrush="{DynamicResource BBSeparator}" BorderThickness="1,0,0,0">
<Grid>
</Grid>
</Border>
</DockPanel>
<Grid>
<Grid d:Visibility="Hidden" Visibility="{Binding IsYXTC,Converter={StaticResource bool2VisibilityConverter}}">
</Grid>
<Grid d:Visibility="Visible" Visibility="{Binding IsLKZZ,Converter={StaticResource bool2VisibilityConverter}}">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<DockPanel>
<Border DockPanel.Dock="Top" BorderBrush="{DynamicResource BBSeparator}" BorderThickness="1,0,0,0">
<DockPanel>
<HeaderedContentControl DockPanel.Dock="Top" Height="40" Background="{DynamicResource BGEvenRow}" Style="{DynamicResource HCC_PropertyEditor}">
<HeaderedContentControl.Header>
<TextBlock Text="作战对象选择"/>
</HeaderedContentControl.Header>
<ComboBox Text="机载多功能相控阵雷达" SelectedIndex="1" IsReadOnly="True">
<ComboBoxItem Content="防空雷达"/>
<ComboBoxItem Content="机载多功能相控阵雷达"/>
<ComboBoxItem Content="雷达导引头"/>
<ComboBoxItem Content="无线电引信"/>
</ComboBox>
</HeaderedContentControl>
<HeaderedContentControl DockPanel.Dock="Top" Height="40" Background="{DynamicResource BGOddRow}" Header="作战意图选择" Style="{DynamicResource HCC_PropertyEditor}">
<UniformGrid Rows="1" VerticalAlignment="Center" Height="30">
<RadioButton Content="不限意图" Style="{DynamicResource RadioButton_OptionLeft}" IsChecked="True"/>
<RadioButton Content="自卫突防" Style="{DynamicResource RadioButton_Option}"/>
<RadioButton Content="支援干扰" Style="{DynamicResource RadioButton_Option}"/>
<RadioButton Content="伴随干扰" Style="{DynamicResource RadioButton_OptionRight}"/>
</UniformGrid>
</HeaderedContentControl>
<HeaderedContentControl DockPanel.Dock="Top" MinHeight="40" Background="{DynamicResource BGEvenRow}" Style="{DynamicResource HCC_PropertyEditor}">
<HeaderedContentControl.Header>
<Border Height="192">
<Border Height="40" VerticalAlignment="Top">
<TextBlock Text="作战效果选择" VerticalAlignment="Center"/>
</Border>
</Border>
</HeaderedContentControl.Header>
<StackPanel VerticalAlignment="Top">
<DockPanel Height="40">
<Button Content="选择所有" DockPanel.Dock="Right"/>
<Button Content="取消选择" DockPanel.Dock="Right"/>
<TextBlock Text="可以多选" VerticalAlignment="Center" Foreground="{DynamicResource FGKeynote}"/>
</DockPanel>
<Border BorderBrush="{DynamicResource BBSeparator}" BorderThickness="0,1,0,0">
<DockPanel Height="40">
<TextBlock Text="压制" FontSize="14" VerticalAlignment="Center" Width="80"/>
<WrapPanel Margin="4">
<CheckBox Margin="4" Content="降低雷达的探测距离" IsChecked="True"/>
<CheckBox Margin="4" Content="使雷达不能发现目标"/>
</WrapPanel>
</DockPanel>
</Border>
<Border BorderBrush="{DynamicResource BBSeparator}" BorderThickness="0,1,0,0">
<DockPanel Height="72">
<TextBlock Text="欺骗" FontSize="14" VerticalAlignment="Center" Width="80"/>
<WrapPanel Margin="4">
<CheckBox Margin="4" Content="使雷达发现多个假目标"/>
<CheckBox Margin="4" Content="饱和雷达数据处理能力" IsChecked="True"/>
<CheckBox Margin="4" Content="起到【隐真示假】作用"/>
</WrapPanel>
</DockPanel>
</Border>
<Border BorderBrush="{DynamicResource BBSeparator}" BorderThickness="0,1,0,0">
<DockPanel Height="40">
<TextBlock Text="拖引" FontSize="14" VerticalAlignment="Center" Width="80"/>
<WrapPanel Margin="4">
<CheckBox Margin="4" Content="使雷达无法稳定跟踪真实目标" IsChecked="True"/>
</WrapPanel>
</DockPanel>
</Border>
</StackPanel>
</HeaderedContentControl>
</DockPanel>
</Border>
<Border Background="{DynamicResource BGHeader}" DockPanel.Dock="Top" Height="40"
BorderBrush="{DynamicResource FGHighlight}" BorderThickness="3,0,0,0">
<DockPanel>
<Button DockPanel.Dock="Right" Content="筛选干扰策略"/>
<Border Margin="8,4,8,4" CornerRadius="16" BorderThickness="1" BorderBrush="{DynamicResource BBSeparator}">
<TextBox Margin="12,0,12,0"/>
</Border>
</DockPanel>
</Border>
<ItemsControl>
</ItemsControl>
</DockPanel>
<DockPanel Grid.Column="1">
<Border Background="{DynamicResource BGHeader}" DockPanel.Dock="Top" Height="40"
BorderBrush="{DynamicResource FGHighlight}" BorderThickness="3,0,0,0">
<DockPanel>
<Grid DockPanel.Dock="Right">
<Button Content="下发并运行干扰策略"
Visibility="{Binding IsChecked, Converter={StaticResource bool2VisibilityConverter}, ElementName=rbBDCL}"/>
<Button Content="同步干扰策略到本机"
Visibility="{Binding IsChecked, Converter={StaticResource bool2VisibilityConverter}, ElementName=rbZXCL}"/>
</Grid>
<UniformGrid Width="320" Rows="1" HorizontalAlignment="Left">
<RadioButton x:Name="rbBDCL" Style="{DynamicResource RadioButton_TabHeader}" IsChecked="True" Content="本地干扰策略"/>
<RadioButton x:Name="rbZXCL" Style="{DynamicResource RadioButton_TabHeader}" Content="干扰机现行策略"/>
</UniformGrid>
</DockPanel>
</Border>
<Border BorderBrush="{DynamicResource BBSeparator}" BorderThickness="1,0,0,0">
<DockPanel>
<Border DockPanel.Dock="Top" Background="{DynamicResource BGEvenRow}" Height="40" BorderBrush="{DynamicResource BBBorder}" BorderThickness="0,0,0,1">
<DockPanel>
<Button Content="选择所有" DockPanel.Dock="Right"/>
<Button Content="取消选择" DockPanel.Dock="Right"/>
<Border DockPanel.Dock="Left" BorderBrush="{DynamicResource BBBorder}" BorderThickness="0,0,0,2">
<TextBlock Margin="12,0,12,0" VerticalAlignment="Center" Text="辅助功能选项" HorizontalAlignment="Center" Foreground="{DynamicResource FGKeynote}"/>
</Border>
<TextBlock/>
</DockPanel>
</Border>
<Border DockPanel.Dock="Top" MinHeight="40" Background="{DynamicResource BGOddRow}">
<StackPanel DockPanel.Dock="Top" Margin="12,0,12,0">
<Border Height="40" BorderBrush="{DynamicResource BBBorder}" BorderThickness="0,0,0,0.5">
<DockPanel>
<TextBlock Text="存储功能" VerticalAlignment="Center" Width="80"/>
<UniformGrid Rows="1" Margin="4">
<CheckBox Margin="4" Content="辐射信号" IsChecked="True"/>
<CheckBox Margin="4" Content="侦察结果"/>
<CheckBox Margin="4" Content="设备状态" IsChecked="True"/>
</UniformGrid>
</DockPanel>
</Border>
<Border Height="40" BorderBrush="{DynamicResource BBBorder}" BorderThickness="0,0,0,0.5">
<DockPanel>
<TextBlock Text="恒增益/恒功率" VerticalAlignment="Center" Width="80"/>
<UniformGrid Rows="1">
</UniformGrid>
</DockPanel>
</Border>
<Border Height="40" BorderBrush="{DynamicResource BBBorder}" BorderThickness="0,0,0,0.5">
<DockPanel>
<TextBlock Text="组网协同" VerticalAlignment="Center" Width="80"/>
<UniformGrid Rows="1">
</UniformGrid>
</DockPanel>
</Border>
<Border Margin="0,0,0,4" Height="72" BorderBrush="{DynamicResource BBBorder}" BorderThickness="0,0,0,0.5">
<DockPanel>
<TextBlock Text="选通 | 抑制" VerticalAlignment="Center" Width="80"/>
<UniformGrid Rows="1">
</UniformGrid>
</DockPanel>
</Border>
</StackPanel>
</Border>
<Border DockPanel.Dock="Top" Background="{DynamicResource BGEvenRow}" Height="40" BorderBrush="{DynamicResource BBBorder}" BorderThickness="0,0,0,1">
<DockPanel>
<Button Content="选择所有" DockPanel.Dock="Right"/>
<Button Content="取消选择" DockPanel.Dock="Right"/>
<Border DockPanel.Dock="Left" BorderBrush="{DynamicResource BBBorder}" BorderThickness="0,0,0,2">
<TextBlock Margin="12,0,12,0" VerticalAlignment="Center" Text="干扰策略内容" HorizontalAlignment="Center" Foreground="{DynamicResource FGKeynote}"/>
</Border>
<TextBlock/>
</DockPanel>
</Border>
<ItemsControl Background="{DynamicResource BGOddRow}">
</ItemsControl>
</DockPanel>
</Border>
</DockPanel>
</Grid>
</Grid>
</DockPanel>
</deedy:WindowBorder>
</Window>