2026-06-30 12:10:29 +08:00
|
|
|
<Window x:Class="SSPCTester.UI.Views.CurvePopupWindow"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:ctl="clr-namespace:SSPCTester.UI.Controls"
|
|
|
|
|
xmlns:vm="clr-namespace:SSPCTester.UI.ViewModels"
|
2026-07-03 14:16:15 +08:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2026-06-30 12:10:29 +08:00
|
|
|
Title="曲线查看器"
|
|
|
|
|
Width="1100" Height="720"
|
|
|
|
|
MinWidth="600" MinHeight="400"
|
|
|
|
|
WindowStartupLocation="CenterOwner"
|
2026-07-03 14:16:15 +08:00
|
|
|
WindowState="Maximized"
|
2026-06-30 12:10:29 +08:00
|
|
|
Background="{StaticResource BgAppBrush}"
|
|
|
|
|
d:DataContext="{d:DesignInstance Type=vm:CurveTestViewModel}"
|
|
|
|
|
mc:Ignorable="d">
|
|
|
|
|
<Grid Margin="16">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
<Grid Margin="0,0,0,12">
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
2026-07-01 20:04:27 +08:00
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
2026-06-30 12:10:29 +08:00
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<TextBlock VerticalAlignment="Center" FontSize="{StaticResource FsH1}" FontWeight="Bold">
|
2026-07-03 14:16:15 +08:00
|
|
|
<Run x:Name="TitleRun" Text="曲线查看器 " />
|
2026-06-30 12:10:29 +08:00
|
|
|
<Run Text="CH" Foreground="{StaticResource TextSecondaryBrush}" />
|
|
|
|
|
<Run Text="{Binding SelectedChannel, Mode=OneWay}" Foreground="{StaticResource PrimaryBrush}" />
|
|
|
|
|
</TextBlock>
|
|
|
|
|
<ComboBox Grid.Column="1" Width="120" Margin="0,0,8,0"
|
|
|
|
|
ItemsSource="{Binding Channels}" SelectedItem="{Binding SelectedChannel}" />
|
2026-07-01 20:04:27 +08:00
|
|
|
<TextBlock Grid.Column="2" Text="起点" VerticalAlignment="Center" Margin="0,0,4,0" />
|
2026-07-03 14:16:15 +08:00
|
|
|
<TextBox x:Name="StartTextBox" Grid.Column="3" Width="64" Height="26" Margin="0,0,8,0" Padding="4,0"
|
2026-07-01 20:04:27 +08:00
|
|
|
FontFamily="{StaticResource FontMono}" />
|
|
|
|
|
<TextBlock Grid.Column="4" Text="终点" VerticalAlignment="Center" Margin="0,0,4,0" />
|
2026-07-03 14:16:15 +08:00
|
|
|
<TextBox x:Name="EndTextBox" Grid.Column="5" Width="64" Height="26" Margin="0,0,8,0" Padding="4,0"
|
2026-07-01 20:04:27 +08:00
|
|
|
FontFamily="{StaticResource FontMono}" />
|
2026-07-03 14:16:15 +08:00
|
|
|
<Button x:Name="ResetButton" Grid.Column="6" Content="默认" Width="54" Height="26" Margin="0,0,8,0" Padding="0" />
|
2026-07-01 20:04:27 +08:00
|
|
|
<Button Grid.Column="7" Content="关闭" Width="80" IsCancel="True" Click="Close_Click" />
|
2026-06-30 12:10:29 +08:00
|
|
|
</Grid>
|
|
|
|
|
|
2026-07-03 14:16:15 +08:00
|
|
|
<Border Grid.Row="1" Style="{StaticResource Card}">
|
2026-06-30 12:10:29 +08:00
|
|
|
<DockPanel>
|
2026-07-03 14:16:15 +08:00
|
|
|
<TextBlock x:Name="CurveTitleText" DockPanel.Dock="Top" Style="{StaticResource CardTitle}" />
|
|
|
|
|
<ctl:CurvePlotControl x:Name="CurvePlot" VMax="{Binding VMax}" />
|
2026-06-30 12:10:29 +08:00
|
|
|
</DockPanel>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Window>
|