添加 MX-PD-盘古 项目文件
将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<UserControl x:Class="MainShell.AlgorithmCalib.View.MotionCalibContentsView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:MainShell.AlgorithmCalib.View"
|
||||
xmlns:mw="http://www.maxwell-gp.com/"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="36"/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition Height="50"/>
|
||||
</Grid.RowDefinitions>
|
||||
<!-- 顶部导航栏 -->
|
||||
<Border Grid.Row="0" Background="White" BorderBrush="#E0E4EA" BorderThickness="0,0,0,1" Padding="10,0">
|
||||
<Grid>
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<TextBlock Text="当前标定:" VerticalAlignment="Center" FontSize="13" Foreground="#7A8FA6"/>
|
||||
<TextBlock Text="{Binding CurrentCalibName}" VerticalAlignment="Center"
|
||||
FontSize="13" FontWeight="SemiBold" Foreground="#2D3748" Margin="0,0,16,0"/>
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
|
||||
<TextBlock Text="{Binding ProgressText}" VerticalAlignment="Center"
|
||||
FontSize="12" Foreground="#A0AEC0"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
<!-- 内容区 -->
|
||||
<ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
|
||||
<ContentControl mw:View.Model="{Binding ShowScreenVM}"/>
|
||||
</ScrollViewer>
|
||||
<!-- 底部导航按钮 -->
|
||||
<Border Grid.Row="2" Background="White" BorderBrush="#E0E4EA" BorderThickness="0,1,0,0" Padding="8,0">
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
|
||||
<Button Content="上一个" Margin="5,0" Padding="16,0" Height="32"
|
||||
Command="{Binding PrevCommand}" IsEnabled="{Binding IsEnablePrev}"/>
|
||||
<Button Content="下一个" Margin="5,0" Padding="16,0" Height="32"
|
||||
Command="{Binding NextCommand}" IsEnabled="{Binding IsEnableNext}"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace MainShell.AlgorithmCalib.View
|
||||
{
|
||||
/// <summary>
|
||||
/// MotionCalibContentsView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class MotionCalibContentsView : UserControl
|
||||
{
|
||||
public MotionCalibContentsView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
<UserControl x:Class="MainShell.AlgorithmCalib.View.MotionCalibView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:MainShell.AlgorithmCalib.View"
|
||||
xmlns:mwFramework="clr-namespace:MwFramework.Controls.SystemCalib;assembly=MwFramework.Controls.SystemCalib"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<mwFramework:MotionSysCalibControlA DataContext="{Binding Service}"/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace MainShell.AlgorithmCalib.View
|
||||
{
|
||||
/// <summary>
|
||||
/// MotionCalibView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class MotionCalibView : UserControl
|
||||
{
|
||||
public MotionCalibView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,405 @@
|
||||
<UserControl x:Class="MainShell.AlgorithmCalib.View.MotionMultipleCalibView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:MainShell.AlgorithmCalib.View"
|
||||
xmlns:mw="http://www.maxwell-gp.com/"
|
||||
xmlns:customControl="clr-namespace:MainShell.Resources.CustomControl"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="800" d:DesignWidth="1200">
|
||||
<UserControl.Resources>
|
||||
<BooleanToVisibilityConverter x:Key="BoolToVisibilityConverter"/>
|
||||
|
||||
<!-- 卡片样式 -->
|
||||
<Style x:Key="ModuleCardStyle" TargetType="Border">
|
||||
<Setter Property="Background" Value="White"/>
|
||||
<Setter Property="BorderBrush" Value="#E0E4EA"/>
|
||||
<Setter Property="BorderThickness" Value="1"/>
|
||||
<Setter Property="CornerRadius" Value="6"/>
|
||||
<Setter Property="Margin" Value="0,0,0,12"/>
|
||||
<Setter Property="Effect">
|
||||
<Setter.Value>
|
||||
<DropShadowEffect Color="#000000" Opacity="0.06" BlurRadius="8" ShadowDepth="2" Direction="270"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SectionHeaderTextStyle" TargetType="TextBlock">
|
||||
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||
<Setter Property="FontSize" Value="12"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="BadgeStyle" TargetType="Border">
|
||||
<Setter Property="CornerRadius" Value="3"/>
|
||||
<Setter Property="Padding" Value="5,1"/>
|
||||
<Setter Property="Margin" Value="3,0"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
</Style>
|
||||
|
||||
<!-- 表头样式 -->
|
||||
<Style x:Key="TableHeaderStyle" TargetType="TextBlock">
|
||||
<Setter Property="FontSize" Value="11"/>
|
||||
<Setter Property="Foreground" Value="#8892A0"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||
</Style>
|
||||
|
||||
<!-- 按钮样式 -->
|
||||
<Style x:Key="SmallActionButtonStyle" TargetType="Button">
|
||||
<Setter Property="Height" Value="28"/>
|
||||
<Setter Property="Padding" Value="10,0"/>
|
||||
<Setter Property="Margin" Value="4,2"/>
|
||||
<Setter Property="FontSize" Value="11"/>
|
||||
<Setter Property="Cursor" Value="Hand"/>
|
||||
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="Button">
|
||||
<Border x:Name="bd" Background="#EDF2F7" BorderBrush="#CBD5E0"
|
||||
BorderThickness="1" CornerRadius="4"
|
||||
Padding="{TemplateBinding Padding}">
|
||||
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="bd" Property="Background" Value="#E2E8F0"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter TargetName="bd" Property="Background" Value="#CBD5E0"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter TargetName="bd" Property="Background" Value="#F7FAFC"/>
|
||||
<Setter TargetName="bd" Property="BorderBrush" Value="#E2E8F0"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="StartCalibButtonStyle" TargetType="Button" BasedOn="{StaticResource BaseRoundedButtonStyle}">
|
||||
<Setter Property="Width" Value="110"/>
|
||||
<Setter Property="Height" Value="32"/>
|
||||
<Setter Property="FontSize" Value="12"/>
|
||||
<Setter Property="Margin" Value="0,0,6,0"/>
|
||||
<Setter Property="Background" Value="#1A202C"/>
|
||||
<Setter Property="BorderBrush" Value="#1A202C"/>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Background" Value="#2D3748"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter Property="Background" Value="#0F141B"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter Property="Background" Value="{StaticResource DisabledBackground}"/>
|
||||
<Setter Property="BorderBrush" Value="{StaticResource DisabledBackground}"/>
|
||||
<Setter Property="Foreground" Value="{StaticResource DisabledForeground}"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="ModuleWriteButtonStyle" TargetType="Button" BasedOn="{StaticResource BaseRoundedButtonStyle}">
|
||||
<Setter Property="Width" Value="110"/>
|
||||
<Setter Property="Height" Value="32"/>
|
||||
<Setter Property="FontSize" Value="12"/>
|
||||
<Setter Property="Margin" Value="4,0"/>
|
||||
<Setter Property="Background" Value="{StaticResource TeachOrange}"/>
|
||||
<Setter Property="BorderBrush" Value="{StaticResource TeachOrange}"/>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Background" Value="{StaticResource TeachOrangeHover}"/>
|
||||
<Setter Property="BorderBrush" Value="{StaticResource TeachOrangeHover}"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsPressed" Value="True">
|
||||
<Setter Property="Background" Value="{StaticResource TeachOrangePressed}"/>
|
||||
<Setter Property="BorderBrush" Value="{StaticResource TeachOrangePressed}"/>
|
||||
</Trigger>
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter Property="Background" Value="{StaticResource DisabledBackground}"/>
|
||||
<Setter Property="BorderBrush" Value="{StaticResource DisabledBackground}"/>
|
||||
<Setter Property="Foreground" Value="{StaticResource DisabledForeground}"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- ==================== 左侧:相机预览 ==================== -->
|
||||
<Border Grid.Column="0" Margin="0,0,4,0">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="32"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Border Grid.Row="0" Padding="10,0">
|
||||
<Grid>
|
||||
<TextBlock Text="相机预览"
|
||||
Foreground="#7A8FA6"
|
||||
FontSize="11"
|
||||
FontWeight="SemiBold"
|
||||
VerticalAlignment="Center"/>
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
|
||||
<Ellipse Width="7" Height="7" Fill="#28A745" Margin="0,0,4,0"/>
|
||||
<TextBlock Text="LIVE" Foreground="#28A745" FontSize="10" FontWeight="Bold"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<ContentControl Grid.Row="1" Content="{Binding CameraAxisViewModelService}"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<!-- ==================== 右侧:工具栏 + 标定卡片 ==================== -->
|
||||
<Grid Grid.Column="1">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="50"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- 顶部工具栏 -->
|
||||
<Border Grid.Row="0" Background="White" BorderBrush="#E0E4EA"
|
||||
BorderThickness="0,0,0,1" Padding="8,0">
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
|
||||
<Button Content="读取标定数据"
|
||||
Command="{mw:Action btnReadCalibData}"
|
||||
Style="{StaticResource SmallActionButtonStyle}"
|
||||
Width="110" Height="34" Margin="5,0"/>
|
||||
<Button Content="保存标定数据"
|
||||
Command="{mw:Action btnSaveCalibData}"
|
||||
Style="{StaticResource SmallActionButtonStyle}"
|
||||
Width="110" Height="34" Margin="5,0"/>
|
||||
<Button Content="应用标定数据"
|
||||
Command="{mw:Action btnApplyCalibData}"
|
||||
Style="{StaticResource ModuleWriteButtonStyle}"
|
||||
Width="110" Height="34" Margin="5,0"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<!-- 标定卡片 -->
|
||||
<ScrollViewer Grid.Row="1"
|
||||
VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Disabled"
|
||||
CanContentScroll="False"
|
||||
PanningMode="VerticalOnly"
|
||||
Padding="8,8,8,0">
|
||||
|
||||
<Border Style="{StaticResource ModuleCardStyle}" IsEnabled="{Binding Motion.IsFinish}">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="36"/>
|
||||
<!-- Header -->
|
||||
<RowDefinition Height="Auto"/>
|
||||
<!-- 标定参数表格 -->
|
||||
<RowDefinition Height="Auto"/>
|
||||
<!-- 操作按钮 -->
|
||||
<RowDefinition Height="Auto"/>
|
||||
<!-- Footer -->
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- ====== 卡片 Header ====== -->
|
||||
<Border Grid.Row="0"
|
||||
Background="#F7F9FC"
|
||||
BorderBrush="#E0E4EA"
|
||||
BorderThickness="0,0,0,1"
|
||||
CornerRadius="6,6,0,0"
|
||||
Padding="10,0">
|
||||
<Grid>
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<TextBlock Text="[] " Foreground="#8892A0" FontSize="14" VerticalAlignment="Center"/>
|
||||
<TextBlock FontWeight="SemiBold" FontSize="13" Foreground="#2D3748" VerticalAlignment="Center">
|
||||
<Run Text="运动系标定数据"/>
|
||||
</TextBlock>
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
|
||||
<Border Style="{StaticResource BadgeStyle}" Background="#EDF2F7">
|
||||
<TextBlock Text="5区域融合" FontSize="10" Foreground="#718096"/>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
<!-- ====== Section 1:标定参数表格 ====== -->
|
||||
<Border Grid.Row="1"
|
||||
BorderBrush="#E0E4EA"
|
||||
BorderThickness="0,0,0,1"
|
||||
Padding="10,8">
|
||||
<StackPanel>
|
||||
<!-- 区域标题 -->
|
||||
<Grid Margin="0,0,0,6">
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<Ellipse Width="8" Height="8" Fill="#2D3748" VerticalAlignment="Center" Margin="0,0,5,0"/>
|
||||
<TextBlock Text="标定区域参数" Style="{StaticResource SectionHeaderTextStyle}"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
<!-- DataGrid -->
|
||||
<DataGrid Name="dataGridMark"
|
||||
ItemsSource="{Binding MotionCalibParItem}"
|
||||
SelectedItem="{Binding SelectedCalibPar}"
|
||||
Margin="0,4"
|
||||
Height="220"
|
||||
RowHeight="35"
|
||||
AutoGenerateColumns="false"
|
||||
SelectionMode="Single"
|
||||
CanUserSortColumns="False"
|
||||
HeadersVisibility="Column"
|
||||
GridLinesVisibility="Horizontal"
|
||||
HorizontalGridLinesBrush="#F0F4F8"
|
||||
BorderBrush="#E0E4EA"
|
||||
BorderThickness="1"
|
||||
RowBackground="White"
|
||||
AlternatingRowBackground="#FAFBFC">
|
||||
<DataGrid.ColumnHeaderStyle>
|
||||
<Style TargetType="DataGridColumnHeader">
|
||||
<!--<Setter Property="Background" Value="#F7F9FC"/>-->
|
||||
<Setter Property="Foreground" Value="#8892A0"/>
|
||||
<Setter Property="FontWeight" Value="SemiBold"/>
|
||||
<Setter Property="FontSize" Value="11"/>
|
||||
<Setter Property="Padding" Value="8,4"/>
|
||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||
<Setter Property="BorderBrush" Value="#E0E4EA"/>
|
||||
<Setter Property="BorderThickness" Value="0,0,0,1"/>
|
||||
</Style>
|
||||
</DataGrid.ColumnHeaderStyle>
|
||||
<DataGrid.CellStyle>
|
||||
<Style TargetType="DataGridCell">
|
||||
<Setter Property="Padding" Value="8,2"/>
|
||||
<Setter Property="BorderThickness" Value="0"/>
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsSelected" Value="True">
|
||||
<Setter Property="Background" Value="#EBF5FF"/>
|
||||
<Setter Property="Foreground" Value="#1568D5"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</DataGrid.CellStyle>
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="序号" IsReadOnly="True" Binding="{Binding Id}" Width="50"/>
|
||||
<DataGridTemplateColumn Width="*">
|
||||
<DataGridTemplateColumn.Header>
|
||||
<TextBlock Text="起点X(mm)"/>
|
||||
</DataGridTemplateColumn.Header>
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Foreground="{StaticResource PrimaryTextBrush}" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding StartAxisX, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat=F4}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
<DataGridTemplateColumn Width="*">
|
||||
<DataGridTemplateColumn.Header>
|
||||
<TextBlock Text="起点Y(mm)"/>
|
||||
</DataGridTemplateColumn.Header>
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Foreground="{StaticResource PrimaryTextBrush}" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding StartAxisY, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat=F4}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
<DataGridTemplateColumn Width="0.5*">
|
||||
<DataGridTemplateColumn.Header>
|
||||
<TextBlock Text="行数"/>
|
||||
</DataGridTemplateColumn.Header>
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Foreground="{StaticResource PrimaryTextBrush}" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Rows, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
<DataGridTemplateColumn Width="*">
|
||||
<DataGridTemplateColumn.Header>
|
||||
<TextBlock Text="行步长(mm)"/>
|
||||
</DataGridTemplateColumn.Header>
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Foreground="{StaticResource PrimaryTextBrush}" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding RowStep, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat=F4}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
<DataGridTemplateColumn Width="0.5*">
|
||||
<DataGridTemplateColumn.Header>
|
||||
<TextBlock Text="列数"/>
|
||||
</DataGridTemplateColumn.Header>
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Foreground="{StaticResource PrimaryTextBrush}" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Columns, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
<DataGridTemplateColumn Width="*">
|
||||
<DataGridTemplateColumn.Header>
|
||||
<TextBlock Text="列步长(mm)"/>
|
||||
</DataGridTemplateColumn.Header>
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Foreground="{StaticResource PrimaryTextBrush}" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding ColumnStep, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat=F4}"/>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<!-- ====== Section 2:操作按钮 ====== -->
|
||||
<Border Grid.Row="2"
|
||||
BorderBrush="#E0E4EA"
|
||||
BorderThickness="0,0,0,1"
|
||||
Padding="10,8">
|
||||
<StackPanel>
|
||||
<Grid Margin="0,0,0,6">
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<Ellipse Width="8" Height="8" Fill="#2B6CB0" VerticalAlignment="Center"
|
||||
Margin="0,0,5,0"/>
|
||||
<TextBlock Text="标定操作"
|
||||
Foreground="#2B6CB0"
|
||||
Style="{StaticResource SectionHeaderTextStyle}"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
<StackPanel Orientation="Horizontal" Margin="0,4">
|
||||
<Button Content="打开标定窗口"
|
||||
Command="{mw:Action btnOpenCalibWindow}"
|
||||
Style="{StaticResource StartCalibButtonStyle}"
|
||||
Width="120"
|
||||
Margin="0,0,10,0"/>
|
||||
<TextBlock Text="选择一行数据后打开对应标定窗口"
|
||||
Foreground="#A0AEC0"
|
||||
FontSize="11"
|
||||
VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<!-- ====== 卡片 Footer ====== -->
|
||||
<Border Grid.Row="3"
|
||||
BorderBrush="#E0E4EA"
|
||||
BorderThickness="0,1,0,0"
|
||||
Background="#FAFBFC"
|
||||
CornerRadius="0,0,6,6"
|
||||
Padding="10,0">
|
||||
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||||
<TextBlock Text="共 5 个标定区域"
|
||||
Foreground="#A0AEC0"
|
||||
FontSize="11"
|
||||
VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
</ScrollViewer>
|
||||
</Grid>
|
||||
|
||||
<!-- 全局 Loading 遮罩 -->
|
||||
<customControl:LoadingWaitView Grid.ColumnSpan="2" Panel.ZIndex="1000"/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace MainShell.AlgorithmCalib.View
|
||||
{
|
||||
/// <summary>
|
||||
/// MotionMultipleCalibView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class MotionMultipleCalibView : UserControl
|
||||
{
|
||||
public MotionMultipleCalibView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user