2025-09-30 14:31:53 +08:00
|
|
|
|
<Window x:Class="WpfApp.MainWindow"
|
|
|
|
|
|
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"
|
2025-10-10 15:58:01 +08:00
|
|
|
|
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
|
|
|
|
|
xmlns:local="clr-namespace:WpfApp.src.components"
|
|
|
|
|
|
|
2025-09-30 14:31:53 +08:00
|
|
|
|
mc:Ignorable="d"
|
2025-10-10 15:58:01 +08:00
|
|
|
|
Title="MainWindow" Height="800" Width="1200">
|
|
|
|
|
|
|
2025-09-30 14:31:53 +08:00
|
|
|
|
<Grid>
|
2025-10-10 15:58:01 +08:00
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
|
<!-- 顶部工具栏 -->
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
<!-- 中间内容 -->
|
|
|
|
|
|
<RowDefinition Height="49"/>
|
|
|
|
|
|
<!-- 底部状态栏 -->
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 使用 DockPanel 可以方便地将 ToolBar 放在顶部 -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 工具栏放在顶部 -->
|
|
|
|
|
|
<ToolBar Grid.Row="0">
|
|
|
|
|
|
<Button Click="OnFilePageButtonClick">
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
|
<Image Source="pack://application:,,,/src/public/Icons/main1-file-icon.png" Width="16" Height="16" />
|
|
|
|
|
|
<TextBlock Text="文件" Margin="5,0,0,0"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
<Button Click="OnConfigPageButtonClick">
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
|
<Image Source="pack://application:,,,/src/public/Icons/main2-config-icon.png" Width="16" Height="16" />
|
|
|
|
|
|
<TextBlock Text="配置" Margin="5,0,0,0"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
<Button Click="OnStandardPageButtonClick">
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
|
<Image Source="pack://application:,,,/src/public/Icons/main3-standard-icon.png" Width="16" Height="16" />
|
|
|
|
|
|
<TextBlock Text="标定" Margin="5,0,0,0"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
<!--<Button Click="OnDetectionPageButtonClick">
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
|
<Image Source="pack://application:,,,/src/public/Icons/main4-detection-icon.png" Width="16" Height="16" />
|
|
|
|
|
|
<TextBlock Text="检测" Margin="5,0,0,0"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Button>-->
|
|
|
|
|
|
|
|
|
|
|
|
<Button Click="OnGaugePageButtonClick">
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
|
<Image Source="pack://application:,,,/src/public/Icons/main5-gauge-icon.png" Width="16" Height="16" />
|
|
|
|
|
|
<TextBlock Text="Gauge R&P" Margin="5,0,0,0"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
<Button Click="OnCgCgkPageButtonClick">
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
|
<Image Source="pack://application:,,,/src/public/Icons/main6-cgCgk-icon.png" Width="16" Height="16" />
|
|
|
|
|
|
<TextBlock Text="CgCgk" Margin="5,0,0,0"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
<Button Click="OnSysSetPageButtonClick">
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
|
<Image Source="pack://application:,,,/src/public/Icons/main7-sysSet-icon.png" Width="16" Height="16" />
|
|
|
|
|
|
<TextBlock Text="系统设定" Margin="5,0,0,0"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
<Button Click="OnCloseMainWindowButtonClick">
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
|
<Image Source="pack://application:,,,/src/public/Icons/main8-exit-icon.png" Width="16" Height="16" />
|
|
|
|
|
|
<TextBlock Text="退出" Margin="5,0,0,0"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
<Button Click="OnDemoButtonClick">
|
|
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
|
|
|
<Image Source="pack://application:,,,/src/public/Icons/main8-exit-icon.png" Width="16" Height="16" />
|
|
|
|
|
|
<TextBlock Text="测试" Margin="5,0,0,0"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ToolBar>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 中间部分 -->
|
|
|
|
|
|
<Grid Grid.Row="1">
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 顶部数据表格区域 -->
|
|
|
|
|
|
<Border Grid.Row="0" Background="White" BorderBrush="#CCCCCC" BorderThickness="1" Margin="10">
|
|
|
|
|
|
<Grid>
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
|
<ColumnDefinition Width="120"/>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
<RowDefinition Height="35"/>
|
|
|
|
|
|
<RowDefinition Height="35"/>
|
|
|
|
|
|
<RowDefinition Height="35"/>
|
|
|
|
|
|
<RowDefinition Height="35"/>
|
|
|
|
|
|
<RowDefinition Height="35"/>
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 表头 -->
|
|
|
|
|
|
<Border Grid.Row="0" Grid.Column="0" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1">
|
|
|
|
|
|
<TextBlock Text="检测" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="0" Grid.Column="1" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1" Background="#D4B896">
|
|
|
|
|
|
<TextBlock Text="传感器1" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="0" Grid.Column="2" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1" Background="#D4B896">
|
|
|
|
|
|
<TextBlock Text="传感器2" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="0" Grid.Column="3" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1" Background="#D4B896">
|
|
|
|
|
|
<TextBlock Text="传感器3" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="0" Grid.Column="4" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1" Background="#D4B896">
|
|
|
|
|
|
<TextBlock Text="传感器4" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="0" Grid.Column="5" BorderBrush="#CCCCCC" BorderThickness="0,0,0,1" Background="#D4B896">
|
|
|
|
|
|
<TextBlock Text="等级" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 数据行 -->
|
|
|
|
|
|
<!-- 体积直径 -->
|
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="0" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1">
|
|
|
|
|
|
<TextBlock Text="体积直径" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="1" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1">
|
|
|
|
|
|
<TextBlock Text="72.9323" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="2" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1">
|
|
|
|
|
|
<TextBlock Text="0.0000" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="3" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1">
|
|
|
|
|
|
<TextBlock Text="72.1638" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="4" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1">
|
|
|
|
|
|
<TextBlock Text="0.0000" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="5" BorderBrush="#CCCCCC" BorderThickness="0,0,0,1">
|
|
|
|
|
|
<TextBlock Text="OK" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold" FontSize="55"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 实际直径 -->
|
|
|
|
|
|
<Border Grid.Row="2" Grid.Column="0" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1">
|
|
|
|
|
|
<TextBlock Text="实际直径" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="2" Grid.Column="1" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1">
|
|
|
|
|
|
<TextBlock Text="-0.0007" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="2" Grid.Column="2" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1">
|
|
|
|
|
|
<TextBlock Text="-39.9913" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="2" Grid.Column="3" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1">
|
|
|
|
|
|
<TextBlock Text="-0.0114" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="2" Grid.Column="4" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1">
|
|
|
|
|
|
<TextBlock Text="0.0000" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<!-- <Border Grid.Row="2" Grid.Column="5" BorderBrush="#CCCCCC" BorderThickness="0,0,0,1">
|
|
|
|
|
|
</Border> -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 确认直径 -->
|
|
|
|
|
|
<Border Grid.Row="3" Grid.Column="0" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1">
|
|
|
|
|
|
<TextBlock Text="确认直径" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="3" Grid.Column="1" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1" Background="#90EE90">
|
|
|
|
|
|
<TextBlock Text="0.0000" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="3" Grid.Column="2" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1" Background="#90EE90">
|
|
|
|
|
|
<TextBlock Text="0.0000" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="3" Grid.Column="3" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1" Background="#90EE90">
|
|
|
|
|
|
<TextBlock Text="0.0000" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="3" Grid.Column="4" BorderBrush="#CCCCCC" BorderThickness="0,0,1,1" Background="#90EE90">
|
|
|
|
|
|
<TextBlock Text="0.0000" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<!-- <Border Grid.Row="3" Grid.Column="5" BorderBrush="#CCCCCC" BorderThickness="0,0,0,1">
|
|
|
|
|
|
</Border> -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 确认数据 -->
|
|
|
|
|
|
<Border Grid.Row="4" Grid.Column="0" BorderBrush="#CCCCCC" BorderThickness="0,0,1,0">
|
|
|
|
|
|
<TextBlock Text="确认数据" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="4" Grid.Column="1" BorderBrush="#CCCCCC" BorderThickness="0,0,1,0" Background="#90EE90">
|
|
|
|
|
|
<TextBlock Text="0.0000" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="4" Grid.Column="2" BorderBrush="#CCCCCC" BorderThickness="0,0,1,0" Background="#90EE90">
|
|
|
|
|
|
<TextBlock Text="0.0000" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="4" Grid.Column="3" BorderBrush="#CCCCCC" BorderThickness="0,0,1,0" Background="#90EE90">
|
|
|
|
|
|
<TextBlock Text="0.0000" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<Border Grid.Row="4" Grid.Column="4" BorderBrush="#CCCCCC" BorderThickness="0,0,1,0" Background="#90EE90">
|
|
|
|
|
|
<TextBlock Text="0.0000" HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
<!-- <Border Grid.Row="4" Grid.Column="5" BorderBrush="#CCCCCC" BorderThickness="0,0,0,0">
|
|
|
|
|
|
</Border> -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 等级列合并 -->
|
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="5" Grid.RowSpan="4"
|
|
|
|
|
|
BorderBrush="#CCCCCC" BorderThickness="0,0,0,0" Background="#C1FFC1">
|
|
|
|
|
|
<TextBlock Text="OK"
|
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
|
Foreground="Green"
|
|
|
|
|
|
FontSize="66"
|
|
|
|
|
|
FontWeight="Bold"
|
|
|
|
|
|
TextAlignment="Center"/>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 中间柱状图区域 -->
|
|
|
|
|
|
<Grid Grid.Row="1" Margin="10" Background="#F8F6E7">
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
|
<ColumnDefinition Width="4*"/>
|
|
|
|
|
|
<!-- 左侧:传感器柱状图 -->
|
|
|
|
|
|
<ColumnDefinition Width="3*"/>
|
|
|
|
|
|
<!-- 右侧:文本占位 -->
|
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 左侧:水平排列三个传感器柱状图 -->
|
|
|
|
|
|
<Grid Grid.Column="0" Margin="5">
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<local:SensorChart x:Name="Sensor1" SensorName="传感器1" Value="-40" Grid.Column="0" Margin="2"/>
|
|
|
|
|
|
<local:SensorChart x:Name="Sensor2" SensorName="传感器2" Value="40" Grid.Column="1" Margin="2"/>
|
|
|
|
|
|
<local:SensorChart x:Name="Sensor3" SensorName="传感器3" Value="-40" Grid.Column="2" Margin="2"/>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 右侧:曲线 -->
|
|
|
|
|
|
<Grid Grid.Column="1" Background="White" Margin="5">
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
<!-- 传感器1 -->
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
<!-- 传感器2 -->
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
<!-- 传感器3 -->
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 图1:传感器1 -->
|
|
|
|
|
|
<Grid Grid.Row="0" Margin="5">
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
|
<!-- 标题 -->
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
<!-- 图表 -->
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="0"
|
|
|
|
|
|
Text="传感器1"
|
|
|
|
|
|
FontSize="16"
|
|
|
|
|
|
FontWeight="Bold"
|
|
|
|
|
|
Foreground="Black"
|
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
|
Margin="0,0,0,5"/>
|
|
|
|
|
|
|
|
|
|
|
|
<lvc:CartesianChart Grid.Row="1"
|
|
|
|
|
|
x:Name="myChart"
|
2025-10-10 17:49:48 +08:00
|
|
|
|
Margin="0,0,0,5">
|
|
|
|
|
|
</lvc:CartesianChart>
|
2025-10-10 15:58:01 +08:00
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 图2:传感器2 -->
|
|
|
|
|
|
<Grid Grid.Row="1" Margin="5">
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="0"
|
|
|
|
|
|
Text="传感器2"
|
|
|
|
|
|
FontSize="16"
|
|
|
|
|
|
FontWeight="Bold"
|
|
|
|
|
|
Foreground="Black"
|
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
|
Margin="0,0,0,5"/>
|
|
|
|
|
|
|
|
|
|
|
|
<lvc:CartesianChart Grid.Row="1"
|
|
|
|
|
|
x:Name="myChart1"
|
|
|
|
|
|
Margin="0,0,0,5"/>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 图3:传感器3 -->
|
|
|
|
|
|
<Grid Grid.Row="2" Margin="5">
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<TextBlock Grid.Row="0"
|
|
|
|
|
|
Text="传感器3"
|
|
|
|
|
|
FontSize="16"
|
|
|
|
|
|
FontWeight="Bold"
|
|
|
|
|
|
Foreground="Black"
|
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
|
Margin="0,0,0,5"/>
|
|
|
|
|
|
|
|
|
|
|
|
<lvc:CartesianChart Grid.Row="1"
|
|
|
|
|
|
x:Name="myChart2"
|
|
|
|
|
|
Margin="0,0,0,5"/>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 底部 StatusBar + 控制按钮自适应 -->
|
|
|
|
|
|
<StatusBar Grid.Row="2">
|
|
|
|
|
|
<!-- 左侧状态显示 -->
|
|
|
|
|
|
<StatusBarItem>
|
|
|
|
|
|
<TextBlock Text="连接成功!当前记录: DFPV C15TDE" />
|
|
|
|
|
|
</StatusBarItem>
|
|
|
|
|
|
<StatusBarItem>
|
|
|
|
|
|
<ProgressBar Width="100" Height="20" Value="50" />
|
|
|
|
|
|
</StatusBarItem>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 右侧控制按钮组 -->
|
|
|
|
|
|
<StatusBarItem HorizontalAlignment="Right">
|
|
|
|
|
|
<Grid>
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 左侧保存/申请类型 -->
|
|
|
|
|
|
<StackPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,10,0">
|
|
|
|
|
|
<TextBlock Text="像素/每微米:" VerticalAlignment="Center" Margin="0,0,5,0"/>
|
|
|
|
|
|
<ComboBox Width="80" Height="25" VerticalAlignment="Center">
|
|
|
|
|
|
<ComboBoxItem Content="低等"/>
|
|
|
|
|
|
<ComboBoxItem Content="中等" IsSelected="True"/>
|
|
|
|
|
|
<ComboBoxItem Content="高等"/>
|
|
|
|
|
|
</ComboBox>
|
2025-10-10 17:49:48 +08:00
|
|
|
|
<!--<RadioButton Content="日志记录" VerticalAlignment="Center" Margin="10,0,0,0" Foreground="Black"/>-->
|
2025-10-10 15:58:01 +08:00
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 中间状态显示 -->
|
|
|
|
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,10,0">
|
2025-10-10 17:49:48 +08:00
|
|
|
|
<!--<Button Content="保存至Cg&Cgk" Width="100" Height="30" Margin="5,0"/>
|
|
|
|
|
|
<Button Content="保存至R&R" Width="80" Height="30" Margin="5,0"/>-->
|
2025-10-10 15:58:01 +08:00
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 右侧按钮组 -->
|
|
|
|
|
|
<StackPanel Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
|
|
|
|
|
|
<Button Content="检测确定" Width="70" Height="30" Margin="5,0" Background="#E6F3FF"/>
|
|
|
|
|
|
<Button Content="保存" Width="50" Height="30" Margin="5,0"/>
|
|
|
|
|
|
<Button Content="完成" Width="50" Height="30" Margin="5,0" Background="#90EE90"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
</StatusBarItem>
|
|
|
|
|
|
</StatusBar>
|
2025-09-30 14:31:53 +08:00
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
</Window>
|