添加 MX-PD-盘古 项目文件
将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
@@ -0,0 +1,91 @@
|
||||
<UserControl x:Class="MainShell.ParaSetting.View.AxisSoftLimitSettingView"
|
||||
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:behavior="clr-namespace:MainShell.Common.ControlAttribute"
|
||||
xmlns:mw="http://www.maxwell-gp.com/"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450"
|
||||
d:DesignWidth="800">
|
||||
<UserControl.Resources>
|
||||
<Style x:Key="AxisSoftLimitTextBoxStyle" TargetType="TextBox" BasedOn="{StaticResource {x:Type TextBox}}">
|
||||
<Setter Property="Height" Value="30"/>
|
||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="AxisSoftLimitNumericEditingTextBoxStyle" TargetType="TextBox" BasedOn="{StaticResource AxisSoftLimitTextBoxStyle}">
|
||||
<Setter Property="behavior:ControlBehavior.IsNumericOnly" Value="True"/>
|
||||
</Style>
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid Background="{StaticResource ProcessPageBackgroundBrush}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="60"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<GroupBox Grid.Row="0"
|
||||
Margin="4,4,4,8"
|
||||
Header="{DynamicResource AxisSoftLimitGroupHeader}"
|
||||
Style="{StaticResource ProcessWideCardGroupBoxStyle}">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Grid.Column="0"
|
||||
Style="{StaticResource ProcessLabelStyle}"
|
||||
Content="{DynamicResource AxisSoftLimitFilePathLabel}"/>
|
||||
<TextBox Grid.Column="1"
|
||||
Style="{StaticResource AxisSoftLimitTextBoxStyle}"
|
||||
IsReadOnly="True"
|
||||
Text="{Binding ParameterFilePath}"/>
|
||||
</Grid>
|
||||
</GroupBox>
|
||||
|
||||
<DataGrid Grid.Row="1"
|
||||
Margin="4,0,4,4"
|
||||
AutoGenerateColumns="False"
|
||||
CanUserAddRows="False"
|
||||
CanUserDeleteRows="False"
|
||||
CanUserSortColumns="False"
|
||||
ItemsSource="{Binding AxisSoftLimitItems}"
|
||||
SelectedItem="{Binding SelectedAxisSoftLimitItem}">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="{DynamicResource AxisName}" Binding="{Binding AxisName}" IsReadOnly="True" Width="2*"/>
|
||||
<DataGridTextColumn Header="{DynamicResource AxisSoftLimitCardName}" Binding="{Binding CardName}" IsReadOnly="True" Width="2*"/>
|
||||
<DataGridTextColumn Header="{DynamicResource AxisSoftLimitCardNum}" Binding="{Binding CardNum}" IsReadOnly="True" Width="*"/>
|
||||
<DataGridTextColumn Header="{DynamicResource AxisSoftLimitAxisNum}" Binding="{Binding AxisNum}" IsReadOnly="True" Width="*"/>
|
||||
<DataGridTextColumn Header="{DynamicResource AxisSoftLimitNegativeLabel}" Width="2*" EditingElementStyle="{StaticResource AxisSoftLimitNumericEditingTextBoxStyle}">
|
||||
<DataGridTextColumn.Binding>
|
||||
<Binding Path="NegativeSoftLimit" UpdateSourceTrigger="PropertyChanged"/>
|
||||
</DataGridTextColumn.Binding>
|
||||
</DataGridTextColumn>
|
||||
<DataGridTextColumn Header="{DynamicResource AxisSoftLimitPositiveLabel}" Width="2*" EditingElementStyle="{StaticResource AxisSoftLimitNumericEditingTextBoxStyle}">
|
||||
<DataGridTextColumn.Binding>
|
||||
<Binding Path="PositiveSoftLimit" UpdateSourceTrigger="PropertyChanged"/>
|
||||
</DataGridTextColumn.Binding>
|
||||
</DataGridTextColumn>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
|
||||
<Grid Grid.Row="2" Margin="4,8,4,4">
|
||||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
|
||||
<Button Content="{DynamicResource AxisSoftLimitApplyAllButton}"
|
||||
Click="{mw:Action BtnApplyAll}"
|
||||
Style="{StaticResource SaveButtonStyle}"
|
||||
Margin="0,0,8,0"/>
|
||||
<Button Content="{DynamicResource AxisSoftLimitApplyButton}"
|
||||
Click="{mw:Action BtnApply}"
|
||||
Style="{StaticResource SaveButtonStyle}"
|
||||
Margin="0,0,8,0"/>
|
||||
<Button Content="{DynamicResource Save}"
|
||||
Click="{mw:Action BtnSave}"
|
||||
Style="{StaticResource SaveButtonStyle}"
|
||||
HorizontalAlignment="Right"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace MainShell.ParaSetting.View
|
||||
{
|
||||
public partial class AxisSoftLimitSettingView : UserControl
|
||||
{
|
||||
public AxisSoftLimitSettingView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
<UserControl x:Class="MainShell.ParaSetting.View.CameraParameterView"
|
||||
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:mw="http://www.maxwell-gp.com/"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
<Style x:Key="CameraParameterLabelStyle" TargetType="Label" BasedOn="{StaticResource ProcessLabelStyle}">
|
||||
<Setter Property="Width" Value="78"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="CameraParameterNumberBoxStyle" TargetType="{x:Type mw:NumberBox}" BasedOn="{StaticResource ProcessLargeNumberBoxStyle}">
|
||||
<Setter Property="Margin" Value="8,0,0,0"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="CameraParameterCardGroupBoxStyle" TargetType="GroupBox" BasedOn="{StaticResource ProcessCardGroupBoxStyle}">
|
||||
<Setter Property="Width" Value="320"/>
|
||||
<Setter Property="Margin" Value="0,0,18,18"/>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid Background="{StaticResource ProcessPageBackgroundBrush}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="60"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<ScrollViewer Grid.Row="0"
|
||||
Margin="4,4,4,0"
|
||||
VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Disabled"
|
||||
Padding="0,0,4,0">
|
||||
<StackPanel Margin="0,0,0,4">
|
||||
<GroupBox Header="{DynamicResource FovPara}" Style="{StaticResource ProcessWideCardGroupBoxStyle}">
|
||||
<ItemsControl ItemsSource="{Binding CameraItems}">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<WrapPanel/>
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<GroupBox Header="{Binding CameraName}" Style="{StaticResource CameraParameterCardGroupBoxStyle}">
|
||||
<StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource CameraParameterLabelStyle}" Content="{DynamicResource FovX}"/>
|
||||
<mw:NumberBox Style="{StaticResource CameraParameterNumberBoxStyle}" Value="{Binding FovX, UpdateSourceTrigger=PropertyChanged}" mw:NumericKeypadAttach.IsEnabled="True"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource CameraParameterLabelStyle}" Content="{DynamicResource FovY}"/>
|
||||
<mw:NumberBox Style="{StaticResource CameraParameterNumberBoxStyle}" Value="{Binding FovY, UpdateSourceTrigger=PropertyChanged}" mw:NumericKeypadAttach.IsEnabled="True"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
</GroupBox>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
<Grid Grid.Row="1" Margin="4,8,4,4">
|
||||
<Button Content="{DynamicResource Save}" Click="{mw:Action BtnSave}" Style="{StaticResource SaveButtonStyle}" HorizontalAlignment="Right"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace MainShell.ParaSetting.View
|
||||
{
|
||||
public partial class CameraParameterView : UserControl
|
||||
{
|
||||
public CameraParameterView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<UserControl x:Class="MainShell.ParaSetting.View.DeviceFoundationView"
|
||||
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.ParaSetting.View"
|
||||
xmlns:mw="http://www.maxwell-gp.com/"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<UserControl.Resources>
|
||||
<Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
|
||||
<Setter Property="HorizontalContentAlignment" Value="Right"/>
|
||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||
<Setter Property="Margin" Value="5"/>
|
||||
<Setter Property="Height" Value="35"/>
|
||||
</Style>
|
||||
</UserControl.Resources>
|
||||
|
||||
<Border Background="{StaticResource BackgroundBrush}" BorderBrush="{StaticResource BorderBrush}" BorderThickness="2,2,2,2">
|
||||
<TabControl mw:TabControlAttach.FontSize="14">
|
||||
<TabItem Header="{DynamicResource MenuMaterialBoxPara}">
|
||||
|
||||
</TabItem>
|
||||
<TabItem Header="{DynamicResource MenuAxisParameters}">
|
||||
<ContentControl mw:View.Model="{Binding AxisParameterSettingViewModel}" />
|
||||
</TabItem>
|
||||
<TabItem Header="{DynamicResource FileSavePara}" >
|
||||
<ContentControl mw:View.Model="{Binding SaveSettingViewModel}"/>
|
||||
</TabItem>
|
||||
<TabItem Header="{DynamicResource CameraPara}">
|
||||
<ContentControl mw:View.Model="{Binding CameraParameterViewModel}"/>
|
||||
</TabItem>
|
||||
<TabItem Header="{DynamicResource OtherPara}">
|
||||
<ContentControl/>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
</Border>
|
||||
</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.ParaSetting.View
|
||||
{
|
||||
/// <summary>
|
||||
/// DeviceFoundationView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class DeviceFoundationView : UserControl
|
||||
{
|
||||
public DeviceFoundationView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<UserControl x:Class="MainShell.ParaSetting.View.DevicePositionView"
|
||||
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.ParaSetting.View"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<TabControl>
|
||||
<TabItem Header="{DynamicResource WaferAllPosition}">
|
||||
|
||||
</TabItem>
|
||||
|
||||
<TabItem Header="{DynamicResource SubstrateAllPosition}">
|
||||
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
</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.ParaSetting.View
|
||||
{
|
||||
/// <summary>
|
||||
/// DevicePositionView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class DevicePositionView : UserControl
|
||||
{
|
||||
public DevicePositionView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
<UserControl x:Class="MainShell.ParaSetting.View.DeviceRunSettingView"
|
||||
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.ParaSetting.View"
|
||||
xmlns:mw="http://www.maxwell-gp.com/"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Border Background="{StaticResource BackgroundBrush}" BorderBrush="{StaticResource BorderBrush}" BorderThickness="2,2,2,2">
|
||||
<TabControl mw:TabControlAttach.FontSize="14">
|
||||
<TabItem Header="{DynamicResource ProcessParameterSettings}">
|
||||
<ContentControl mw:View.Model="{Binding ProcessParameterSettingViewModel}"/>
|
||||
</TabItem>
|
||||
<TabItem Header="{DynamicResource SpeedParameters}">
|
||||
<ContentControl mw:View.Model="{Binding SpeedSettingViewModel}"/>
|
||||
</TabItem>
|
||||
<TabItem Header="{DynamicResource GlobalRunParameters}">
|
||||
<ContentControl mw:View.Model="{Binding OtherProduceViewModel}"/>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
</Border>
|
||||
</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.ParaSetting.View
|
||||
{
|
||||
/// <summary>
|
||||
/// DeviceRunSettingView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class DeviceRunSettingView : UserControl
|
||||
{
|
||||
public DeviceRunSettingView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
<UserControl x:Class="MainShell.ParaSetting.View.DeviceSafetyView"
|
||||
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:mw="http://www.maxwell-gp.com/"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="900"
|
||||
d:DesignWidth="1200">
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
<Style x:Key="DeviceSafetyLabelStyle" TargetType="Label" BasedOn="{StaticResource ProcessLabelStyle}">
|
||||
<Setter Property="Width" Value="168"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DeviceSafetyWideLabelStyle" TargetType="Label" BasedOn="{StaticResource ProcessLabelStyle}">
|
||||
<Setter Property="Width" Value="210"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DeviceSafetyCompactLabelStyle" TargetType="Label" BasedOn="{StaticResource ProcessLabelStyle}">
|
||||
<Setter Property="Width" Value="150"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DeviceSafetyNumberBoxStyle" TargetType="{x:Type mw:NumberBox}" BasedOn="{StaticResource ProcessNumberBoxStyle}">
|
||||
<Setter Property="Margin" Value="8,0,0,0"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="DeviceSafetyLargeNumberBoxStyle" TargetType="{x:Type mw:NumberBox}" BasedOn="{StaticResource ProcessLargeNumberBoxStyle}">
|
||||
<Setter Property="Margin" Value="8,0,0,0"/>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid Background="{StaticResource ProcessPageBackgroundBrush}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<ScrollViewer Grid.Row="0"
|
||||
Margin="4,4,4,0"
|
||||
VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Disabled"
|
||||
Padding="0,0,4,0">
|
||||
<StackPanel Margin="0,0,0,4">
|
||||
<GroupBox Header="安全干涉设置" Style="{StaticResource ProcessWideCardGroupBoxStyle}">
|
||||
<WrapPanel>
|
||||
<StackPanel Width="302" Margin="0,0,18,0">
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyLabelStyle}" Content="Z1环内最低安全高度:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.Z1InRingSafeHeight}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyLabelStyle}" Content="Z1通用安全高度:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.Z1GeneralSafeHeight}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyLabelStyle}" Content="Z5通用安全高度:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.Z5GeneralSafeHeight}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyLabelStyle}" Content="Z4环外最低安全高度:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.Z4OutRingSafeHeight}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyLabelStyle}" Content="刺晶头对刀安全高度:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.NeedleCalibSafeHeight}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Width="302" Margin="0,0,18,0">
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyLabelStyle}" Content="Z1环上最低安全高度:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.Z1OnRingSafeHeight}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyLabelStyle}" Content="Z3通用安全高度:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.Z3GeneralSafeHeight}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyLabelStyle}" Content="Z6通用安全高度:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.Z6GeneralSafeHeight}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyLabelStyle}" Content="Z5环外最低安全高度:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.Z5OutRingSafeHeight}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Width="302">
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyLabelStyle}" Content="Z1环外最低安全高度:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.Z1OutRingSafeHeight}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyLabelStyle}" Content="Z4通用安全高度:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.Z4GeneralSafeHeight}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyLabelStyle}" Content="Z3环外最低安全高度:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.Z3OutRingSafeHeight}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyLabelStyle}" Content="Z6环外最低安全高度:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.Z6OutRingSafeHeight}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</WrapPanel>
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox Header="基准与范围设置" Style="{StaticResource ProcessWideCardGroupBoxStyle}">
|
||||
<WrapPanel>
|
||||
<StackPanel Width="392" Margin="0,0,18,0">
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyWideLabelStyle}" Content="刺晶头基准 X1-X3最大值:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyLargeNumberBoxStyle}" Value="{Binding SafeParaSysItem.NeedleReferenceX1X3Max}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyWideLabelStyle}" Content="刺晶头基准 X1-X3最小值:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyLargeNumberBoxStyle}" Value="{Binding SafeParaSysItem.NeedleReferenceX1X3Min}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Width="392">
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyWideLabelStyle}" Content="定位光源基准 X1-X3最大值:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyLargeNumberBoxStyle}" Value="{Binding SafeParaSysItem.PositionLightReferenceX1X3Max}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyWideLabelStyle}" Content="定位光源基准 X1-X3最小值:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyLargeNumberBoxStyle}" Value="{Binding SafeParaSysItem.PositionLightReferenceX1X3Min}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</WrapPanel>
|
||||
</GroupBox>
|
||||
|
||||
<WrapPanel>
|
||||
<GroupBox Header="大视野光源设置" Style="{StaticResource ProcessCardGroupBoxStyle}" Width="430" Margin="0,0,18,18">
|
||||
<StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyCompactLabelStyle}" Content="X2-X3最大值:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.WideFieldLightX2X3Max}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyCompactLabelStyle}" Content="X2-X3最小值:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.WideFieldLightX2X3Min}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox Header="半径设置" Style="{StaticResource ProcessCardGroupBoxStyle}" Width="430" Margin="0,0,0,18">
|
||||
<StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyCompactLabelStyle}" Content="WS内环半径:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.WsInnerRingRadius}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource DeviceSafetyCompactLabelStyle}" Content="刺晶头半径:"/>
|
||||
<mw:NumberBox Style="{StaticResource DeviceSafetyNumberBoxStyle}" Value="{Binding SafeParaSysItem.NeedleRadius}" DecimalPlaces="4" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="10000" Minimum="-10000" Increment="0.5"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
</WrapPanel>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
<Grid Grid.Row="1" Margin="4,8,4,4">
|
||||
<Button Content="{DynamicResource Save}" Style="{StaticResource SaveButtonStyle}" HorizontalAlignment="Right"/>
|
||||
</Grid>
|
||||
</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.ParaSetting.View
|
||||
{
|
||||
/// <summary>
|
||||
/// DeviceSafetyView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class DeviceSafetyView : UserControl
|
||||
{
|
||||
public DeviceSafetyView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<UserControl x:Class="MainShell.ParaSetting.View.OtherProduceView"
|
||||
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.ParaSetting.View"
|
||||
xmlns:mw="http://www.maxwell-gp.com/"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<UserControl.Resources>
|
||||
<Style TargetType="ToggleButton" BasedOn="{StaticResource {x:Type ToggleButton}}" >
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Left"/>
|
||||
<Setter Property="FontSize" Value="16"/>
|
||||
<Setter Property="Margin" Value="3"/>
|
||||
<Setter Property="Height" Value="30"/>
|
||||
<Setter Property="Width" Value="120"/>
|
||||
</Style>
|
||||
<Style TargetType="Label" BasedOn="{StaticResource {x:Type Label}}">
|
||||
<Setter Property="Width" Value="95"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
</Style>
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="60"/>
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Orientation="Vertical">
|
||||
<GroupBox Header="{DynamicResource GlobalRunFeatureSettings}" Margin="3,3,3,3" Style="{StaticResource GroupBoxSecondary}">
|
||||
<UniformGrid Columns="3">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label Content="{DynamicResource NeedleCheckBondingGlassNum}" VerticalAlignment="Center"/>
|
||||
<mw:IntNumberBox Value="{Binding GlobalRunParameter.NeedleCheckBondingGlassNum}" mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True" Maximum="1000" Minimum="0" HorizontalAlignment="Left" Height="30" Width="85" VerticalAlignment="Center" FontSize="12"/>
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label Content="{DynamicResource UseMes}"/>
|
||||
<ToggleButton IsChecked="{Binding GlobalRunParameter.IsUseMesLeiMan}" />
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label Content="{DynamicResource AirCoolAllProduceLabel}"/>
|
||||
<ToggleButton IsChecked="{Binding BondingProcessParameter.UseAirCoolAllProduce}" />
|
||||
</StackPanel>
|
||||
</UniformGrid>
|
||||
</GroupBox>
|
||||
<GroupBox Header="{DynamicResource GlobalRunModeSettings}" Style="{StaticResource GroupBoxSecondary}" Margin="3">
|
||||
<UniformGrid Rows="3" HorizontalAlignment="Center">
|
||||
<ToggleButton Content="{DynamicResource ProduceTest}" Margin="5" IsChecked="{Binding GlobalRunParameter.RunningMode, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource RunningModeToBoolConverter}, ConverterParameter='1'}" />
|
||||
<ToggleButton Content="{DynamicResource WholeMachineAging}" Margin="5" IsChecked="{Binding GlobalRunParameter.RunningMode, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource RunningModeToBoolConverter}, ConverterParameter='2'}" />
|
||||
</UniformGrid>
|
||||
</GroupBox>
|
||||
</StackPanel>
|
||||
|
||||
<Button Content="{DynamicResource Save}" Click="{mw:Action BtnSave}" Grid.Row="2" Style="{StaticResource SaveButtonStyle}" HorizontalAlignment="Right"/>
|
||||
</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.ParaSetting.View
|
||||
{
|
||||
/// <summary>
|
||||
/// OtherProduceView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class OtherProduceView : UserControl
|
||||
{
|
||||
public OtherProduceView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<UserControl x:Class="MainShell.ParaSetting.View.ParaSettingView"
|
||||
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.ParaSetting.View"
|
||||
xmlns:mw="http://www.maxwell-gp.com/"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid Margin="-40,0,0,0" Grid.Column="0">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<mw:SideMenu ItemsSource="{Binding MenuItemWraps}"
|
||||
SelectedItem="{Binding SelectedMenuItem, Mode=TwoWay}"
|
||||
Grid.Row ="0" Width="180"
|
||||
ExpandMode="Accordion"
|
||||
AutoSelect="True"
|
||||
>
|
||||
<mw:SideMenu.ItemContainerStyle>
|
||||
<Style TargetType="{x:Type mw:SideMenuItem}" BasedOn="{StaticResource SideMenuItemHeaderAccordionBaseStyle}">
|
||||
<Setter Property="Header" Value="{Binding Header}" />
|
||||
<Setter Property="Tag" Value="{Binding Tag}" />
|
||||
</Style>
|
||||
</mw:SideMenu.ItemContainerStyle>
|
||||
</mw:SideMenu>
|
||||
|
||||
</Grid>
|
||||
|
||||
<ContentControl Margin="5,0" Grid.Column="2" mw:View.Model="{Binding CurrentScreen}"/>
|
||||
</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.ParaSetting.View
|
||||
{
|
||||
/// <summary>
|
||||
/// ParaSettingView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class ParaSettingView : UserControl
|
||||
{
|
||||
public ParaSettingView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<UserControl x:Class="MainShell.ParaSetting.View.ProcessParameterSettingView"
|
||||
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:mw="http://www.maxwell-gp.com/"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid Background="{StaticResource ProcessPageBackgroundBrush}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="60"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="220"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Border Grid.Row="0" Grid.Column="0" Margin="8,8,6,8" Background="{StaticResource ProcessCardBackgroundBrush}" BorderBrush="{StaticResource ProcessCardBorderBrush}" BorderThickness="1" CornerRadius="6">
|
||||
<ListBox Margin="6"
|
||||
ItemsSource="{Binding ProcessMenuItemWraps}"
|
||||
SelectedItem="{Binding SelectedProcessMenuItem, Mode=TwoWay}"
|
||||
DisplayMemberPath="Header"
|
||||
Style="{StaticResource ProcessNavigationListBoxStyle}"/>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="0" Grid.Column="1" Margin="6,8,8,8" Background="{StaticResource ProcessCardBackgroundBrush}" BorderBrush="{StaticResource ProcessCardBorderBrush}" BorderThickness="1" CornerRadius="6">
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Padding="8">
|
||||
<ContentControl HorizontalAlignment="Stretch" mw:View.Model="{Binding CurrentScreen}"/>
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
|
||||
<Button Grid.Row="1" Grid.Column="1" Margin="0,6,8,0" Content="{DynamicResource Save}" Click="{mw:Action BtnSave}" Style="{StaticResource SaveButtonStyle}" HorizontalAlignment="Right"/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace MainShell.ParaSetting.View
|
||||
{
|
||||
public partial class ProcessParameterSettingView : UserControl
|
||||
{
|
||||
public ProcessParameterSettingView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="/MainShell;component/Resources/Styles/ProcessParameterStyles.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,227 @@
|
||||
<UserControl x:Class="MainShell.ParaSetting.View.ProduceControlView"
|
||||
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.ParaSetting.View"
|
||||
xmlns:mw="http://www.maxwell-gp.com/"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<UserControl.Resources>
|
||||
<!-- ToggleButton样式 - 金属光泽开关样式 -->
|
||||
<Style x:Key="MetallicToggleStyle" TargetType="ToggleButton">
|
||||
<Setter Property="Width" Value="60"/>
|
||||
<Setter Property="Height" Value="30"/>
|
||||
<Setter Property="BorderThickness" Value="0"/>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="ToggleButton">
|
||||
<Grid>
|
||||
<!-- 外部方形区域(金属边框效果) -->
|
||||
<Border x:Name="OuterBorder"
|
||||
Width="60"
|
||||
Height="30"
|
||||
CornerRadius="4"
|
||||
Background="White"
|
||||
BorderBrush="#C0C0C0"
|
||||
BorderThickness="2">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect ShadowDepth="1"
|
||||
BlurRadius="2"
|
||||
Opacity="0.3"/>
|
||||
</Border.Effect>
|
||||
</Border>
|
||||
|
||||
<!-- 内部轨道 -->
|
||||
<Border x:Name="Track"
|
||||
Width="54"
|
||||
Height="24"
|
||||
CornerRadius="3"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Background="#F0F0F0"
|
||||
BorderBrush="#D0D0D0"
|
||||
BorderThickness="1">
|
||||
<!--<Border.Effect>
|
||||
--><!--<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#E8E8E8" Offset="0"/>
|
||||
<GradientStop Color="#F8F8F8" Offset="1"/>
|
||||
</LinearGradientBrush>--><!--
|
||||
</Border.Effect>-->
|
||||
</Border>
|
||||
|
||||
<!-- 圆形开关按钮 -->
|
||||
<Border x:Name="Knob"
|
||||
Width="28"
|
||||
Height="28"
|
||||
CornerRadius="14"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Margin="1,0,0,0">
|
||||
<Border.Background>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop x:Name="KnobGradient1" Color="#D0D0D0" Offset="0"/>
|
||||
<GradientStop x:Name="KnobGradient2" Color="#E0E0E0" Offset="1"/>
|
||||
</LinearGradientBrush>
|
||||
</Border.Background>
|
||||
<Border.Effect>
|
||||
<DropShadowEffect ShadowDepth="2"
|
||||
BlurRadius="3"
|
||||
Opacity="0.3"/>
|
||||
</Border.Effect>
|
||||
<Border.BorderBrush>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#B0B0B0" Offset="0"/>
|
||||
<GradientStop Color="#C0C0C0" Offset="1"/>
|
||||
</LinearGradientBrush>
|
||||
</Border.BorderBrush>
|
||||
<Border.BorderThickness>
|
||||
1
|
||||
</Border.BorderThickness>
|
||||
</Border>
|
||||
</Grid>
|
||||
|
||||
<ControlTemplate.Triggers>
|
||||
<!-- 开状态 -->
|
||||
<Trigger Property="IsChecked" Value="True">
|
||||
<Setter TargetName="Knob" Property="HorizontalAlignment" Value="Right"/>
|
||||
<Setter TargetName="Knob" Property="Margin" Value="0,0,1,0"/>
|
||||
<Setter TargetName="Track" Property="Background">
|
||||
<Setter.Value>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#E0F7E0" Offset="0"/>
|
||||
<GradientStop Color="#F0FFF0" Offset="1"/>
|
||||
</LinearGradientBrush>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Setter TargetName="Knob" Property="Background">
|
||||
<Setter.Value>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#4CAF50" Offset="0"/>
|
||||
<GradientStop Color="#66BB6A" Offset="1"/>
|
||||
</LinearGradientBrush>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Setter TargetName="Knob" Property="BorderBrush">
|
||||
<Setter.Value>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#388E3C" Offset="0"/>
|
||||
<GradientStop Color="#4CAF50" Offset="1"/>
|
||||
</LinearGradientBrush>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Trigger>
|
||||
|
||||
<!-- 悬停效果 -->
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter TargetName="OuterBorder" Property="BorderBrush" Value="#A0A0A0"/>
|
||||
<Setter TargetName="OuterBorder" Property="Effect">
|
||||
<Setter.Value>
|
||||
<DropShadowEffect ShadowDepth="1.5"
|
||||
BlurRadius="3"
|
||||
Opacity="0.4"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Trigger>
|
||||
|
||||
<!-- 禁用状态 -->
|
||||
<Trigger Property="IsEnabled" Value="False">
|
||||
<Setter TargetName="OuterBorder" Property="Opacity" Value="0.6"/>
|
||||
<Setter TargetName="Knob" Property="Opacity" Value="0.6"/>
|
||||
<Setter TargetName="Track" Property="Opacity" Value="0.6"/>
|
||||
</Trigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</UserControl.Resources>
|
||||
|
||||
<Border Background="White" CornerRadius="8" BorderBrush="#E0E0E0" BorderThickness="1" Padding="10">
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="60"/>
|
||||
</Grid.RowDefinitions>
|
||||
<!-- 开关控制区域 -->
|
||||
<ItemsControl Grid.Row="1" ItemsSource="{Binding SubProcesses}">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<UniformGrid Columns="6" Rows="4" HorizontalAlignment="Center"/>
|
||||
</ItemsPanelTemplate>
|
||||
</ItemsControl.ItemsPanel>
|
||||
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border Width="140"
|
||||
Height="90"
|
||||
Margin="5"
|
||||
Background="#F9F9F9"
|
||||
CornerRadius="6"
|
||||
BorderBrush="#E8E8E8"
|
||||
BorderThickness="1"
|
||||
Padding="5">
|
||||
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<!-- 流程名称 -->
|
||||
<TextBlock Text="{Binding ProcessName}"
|
||||
FontSize="13"
|
||||
FontWeight="SemiBold"
|
||||
Foreground="#34495E"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,0,0,8"
|
||||
TextWrapping="Wrap"/>
|
||||
|
||||
<!-- 开关控件 -->
|
||||
<ToggleButton x:Name="ProcessToggle"
|
||||
IsChecked="{Binding IsEnabled, Mode=TwoWay}"
|
||||
Style="{StaticResource MetallicToggleStyle}"
|
||||
HorizontalAlignment="Center"
|
||||
Cursor="Hand"
|
||||
ToolTip="{Binding ToolTipText}"/>
|
||||
|
||||
<!-- 状态文本 -->
|
||||
<TextBlock Text="{Binding StatusText}"
|
||||
FontSize="11"
|
||||
Foreground="#7F8C8D"
|
||||
HorizontalAlignment="Center"
|
||||
Margin="0,5,0,0"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- 边框悬停效果 -->
|
||||
<Border.Style>
|
||||
<Style TargetType="Border">
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding IsEnabled}" Value="True">
|
||||
<Setter Property="BorderBrush" Value="#4CAF50"/>
|
||||
<Setter Property="Background">
|
||||
<Setter.Value>
|
||||
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
|
||||
<GradientStop Color="#F1F8E9" Offset="0"/>
|
||||
<GradientStop Color="#FFFFFF" Offset="1"/>
|
||||
</LinearGradientBrush>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</DataTrigger>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="BorderBrush" Value="#BDC3C7"/>
|
||||
<Setter Property="Effect">
|
||||
<Setter.Value>
|
||||
<DropShadowEffect ShadowDepth="1"
|
||||
BlurRadius="5"
|
||||
Opacity="0.2"/>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Border.Style>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
|
||||
<Button Content="保存" Click="{mw:Action BtnSave}" Grid.Row="2" Style="{StaticResource SaveButtonStyle}" HorizontalAlignment="Right"/>
|
||||
</Grid>
|
||||
</Border>
|
||||
</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.ParaSetting.View
|
||||
{
|
||||
/// <summary>
|
||||
/// ProduceControlView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class ProduceControlView : UserControl
|
||||
{
|
||||
public ProduceControlView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
<UserControl x:Class="MainShell.ParaSetting.View.SaveSettingView"
|
||||
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:mw="http://www.maxwell-gp.com/"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
<Style x:Key="SaveSettingLabelStyle" TargetType="Label" BasedOn="{StaticResource ProcessLabelStyle}">
|
||||
<Setter Property="Width" Value="220"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SaveSettingToggleStyle" TargetType="ToggleButton" BasedOn="{StaticResource ProcessToggleStyle}">
|
||||
<Setter Property="MinWidth" Value="54"/>
|
||||
<Setter Property="Width" Value="54"/>
|
||||
<Setter Property="Margin" Value="8,0,0,0"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SaveSettingTextBoxStyle" TargetType="TextBox" BasedOn="{StaticResource {x:Type TextBox}}">
|
||||
<Setter Property="Height" Value="32"/>
|
||||
<Setter Property="MinWidth" Value="320"/>
|
||||
<Setter Property="Margin" Value="8,0,0,0"/>
|
||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||||
<Setter Property="Background" Value="{StaticResource ProcessCardBackgroundBrush}"/>
|
||||
<Setter Property="BorderBrush" Value="{StaticResource ProcessCardBorderBrush}"/>
|
||||
<Setter Property="Foreground" Value="{StaticResource ProcessBodyForegroundBrush}"/>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SaveSettingBrowseButtonStyle" TargetType="Button" BasedOn="{StaticResource SettingsButtonStyle}">
|
||||
<Setter Property="Height" Value="32"/>
|
||||
<Setter Property="MinWidth" Value="88"/>
|
||||
<Setter Property="Margin" Value="8,0,0,0"/>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
|
||||
<Grid Background="{StaticResource ProcessPageBackgroundBrush}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="60"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<ScrollViewer Grid.Row="0"
|
||||
Margin="4,4,4,0"
|
||||
VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Disabled"
|
||||
Padding="0,0,4,0">
|
||||
<StackPanel Margin="0,0,0,4">
|
||||
<GroupBox Header="{DynamicResource FileRelatedSaveSetting}" Style="{StaticResource ProcessWideCardGroupBoxStyle}" DataContext="{Binding SaveSettingItem.FileSaveSetting}">
|
||||
<StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource SaveSettingLabelStyle}" Content="{DynamicResource DeviceFoundationSaveEnable}"/>
|
||||
<ToggleButton Style="{StaticResource SaveSettingToggleStyle}" IsChecked="{Binding IsSaveEnabled}"/>
|
||||
</StackPanel>
|
||||
|
||||
<Grid Margin="0,0,0,10">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Grid.Column="0" Style="{StaticResource SaveSettingLabelStyle}" Content="{DynamicResource DeviceFoundationSavePath}"/>
|
||||
<TextBox Grid.Column="1" Style="{StaticResource SaveSettingTextBoxStyle}" IsReadOnly="True" Text="{Binding SaveFolder, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Button Grid.Column="2" Style="{StaticResource SaveSettingBrowseButtonStyle}" Content="{DynamicResource Browse}" Click="{mw:Action BrowseFileSaveFolder}"/>
|
||||
</Grid>
|
||||
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource SaveSettingLabelStyle}" Content="{DynamicResource DeviceFoundationCreateDateFolder}"/>
|
||||
<ToggleButton Style="{StaticResource SaveSettingToggleStyle}" IsChecked="{Binding IsCreateDateFolder}"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
|
||||
<GroupBox Header="{DynamicResource ImageRelatedSaveSetting}" Style="{StaticResource ProcessWideCardGroupBoxStyle}" DataContext="{Binding SaveSettingItem.ImageSaveSetting}">
|
||||
<StackPanel>
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource SaveSettingLabelStyle}" Content="{DynamicResource DeviceFoundationSaveEnable}"/>
|
||||
<ToggleButton Style="{StaticResource SaveSettingToggleStyle}" IsChecked="{Binding IsSaveEnabled}"/>
|
||||
</StackPanel>
|
||||
|
||||
<Grid Margin="0,0,0,10">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<Label Grid.Column="0" Style="{StaticResource SaveSettingLabelStyle}" Content="{DynamicResource DeviceFoundationSavePath}"/>
|
||||
<TextBox Grid.Column="1" Style="{StaticResource SaveSettingTextBoxStyle}" IsReadOnly="True" Text="{Binding SaveFolder, UpdateSourceTrigger=PropertyChanged}"/>
|
||||
<Button Grid.Column="2" Style="{StaticResource SaveSettingBrowseButtonStyle}" Content="{DynamicResource Browse}" Click="{mw:Action BrowseImageSaveFolder}"/>
|
||||
</Grid>
|
||||
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource SaveSettingLabelStyle}" Content="{DynamicResource DeviceFoundationCreateDateFolder}"/>
|
||||
<ToggleButton Style="{StaticResource SaveSettingToggleStyle}" IsChecked="{Binding IsCreateDateFolder}"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource SaveSettingLabelStyle}" Content="{DynamicResource DeviceFoundationSaveUpCameraImage}"/>
|
||||
<ToggleButton Style="{StaticResource SaveSettingToggleStyle}" IsChecked="{Binding IsSaveUpCameraImage}"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource SaveSettingLabelStyle}" Content="{DynamicResource DeviceFoundationSaveDownCameraImage}"/>
|
||||
<ToggleButton Style="{StaticResource SaveSettingToggleStyle}" IsChecked="{Binding IsSaveDownCameraImage}"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Style="{StaticResource ProcessParameterRowStyle}">
|
||||
<Label Style="{StaticResource SaveSettingLabelStyle}" Content="{DynamicResource DeviceFoundationSaveMapCameraImage}"/>
|
||||
<ToggleButton Style="{StaticResource SaveSettingToggleStyle}" IsChecked="{Binding IsSaveMapCameraImage}"/>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
|
||||
<Grid Grid.Row="1" Margin="4,8,4,4">
|
||||
<Button Content="{DynamicResource Save}" Click="{mw:Action BtnSave}" Style="{StaticResource SaveButtonStyle}" HorizontalAlignment="Right"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace MainShell.ParaSetting.View
|
||||
{
|
||||
public partial class SaveSettingView : UserControl
|
||||
{
|
||||
public SaveSettingView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
<UserControl x:Class="MainShell.ParaSetting.View.SpeedSettingView"
|
||||
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.ParaSetting.View"
|
||||
xmlns:common="clr-namespace:MainShell.Common"
|
||||
xmlns:mw="http://www.maxwell-gp.com/"
|
||||
xmlns:attribute="clr-namespace:MainShell.Common.ControlAttribute"
|
||||
xmlns:conv="clr-namespace:MainShell.Converter"
|
||||
mw:ParameterAttach.DelayAcceptValue ="{Binding ParameterHelper}"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<UserControl.Resources>
|
||||
<conv:EnumBindingSourceExtension x:Key="SpeedEnums" UseDescription="True" EnumType="{x:Type common:SpeedType}" />
|
||||
<Style x:Key="CommonLabelStyle" TargetType="Label">
|
||||
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||||
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||
<Setter Property="Width" Value="120"/>
|
||||
<Setter Property="Height" Value="40"/>
|
||||
<Setter Property="FontSize" Value="15"/>
|
||||
</Style>
|
||||
</UserControl.Resources>
|
||||
|
||||
<Border BorderBrush="{StaticResource PgBackground}" BorderThickness="2">
|
||||
<Grid >
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Orientation="Horizontal" Margin="5">
|
||||
<TextBlock Style="{StaticResource LabelStyle}"
|
||||
Text="{DynamicResource SpeedSetting}"
|
||||
HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||
Margin="15,0,15,0"
|
||||
FontSize="18"
|
||||
FontFamily="Segoe UI"
|
||||
FontWeight="Bold"
|
||||
Foreground="#424A4D"/>
|
||||
<mw:NumberBox DecimalPlaces="4" Value="{Binding Speed}" Height="30" Width="110"
|
||||
mw:NumericKeypadAttach.IsEnabled="True" ShowUpDownButton="True"
|
||||
Maximum="2000" Minimum="0" Increment="0.5" Grid.Column="3"
|
||||
HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
||||
<Button Click="{mw:Action btnRowData}" Content="{DynamicResource ChangeSingleData}" Margin="20,0,10,0" Style="{StaticResource Button}"/>
|
||||
<Button Click="{mw:Action btnPageData}" Content="{DynamicResource ChangeAllData}" Margin="20,0,10,0" Style="{StaticResource Button}"/>
|
||||
<!--<Button Click="{mw:Action btnPageGantryData}" Content="{DynamicResource ChangeMainData}" Margin="20,0,10,0" Style="{StaticResource Button}"/>-->
|
||||
<!--<Button Click="{mw:Action btnPageZAndTHData}" Content="修改Z和TH轴数据" Margin="20,0,10,0" Style="{StaticResource Button}"/>-->
|
||||
|
||||
</StackPanel>
|
||||
<DataGrid AutoGenerateColumns="False"
|
||||
VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Auto"
|
||||
Margin="20,10,0,10"
|
||||
Grid.Row="1"
|
||||
RowStyle="{StaticResource DataGridRowErrorStyle}"
|
||||
ItemsSource="{Binding SpeedParaSysSetting.SpeedTypeItemCollection.SpeedTypeItemList}"
|
||||
SelectedItem="{Binding SpeedParaSysSetting.SpeedTypeItemCollection.CurrentSelectSpeedTypeItemList}"
|
||||
CanUserSortColumns="False">
|
||||
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="{DynamicResource AxisName}" Width="*" Binding="{Binding AxisName}" IsReadOnly="True"/>
|
||||
<DataGridTextColumn Header="{DynamicResource Speed}" Width="*">
|
||||
<DataGridTextColumn.Binding>
|
||||
<Binding Path="Speed" UpdateSourceTrigger="PropertyChanged">
|
||||
<Binding.ValidationRules>
|
||||
<attribute:NumericValidationRule/>
|
||||
</Binding.ValidationRules>
|
||||
</Binding>
|
||||
</DataGridTextColumn.Binding>
|
||||
</DataGridTextColumn>
|
||||
|
||||
<DataGridTextColumn Header="{DynamicResource Acc}" Width="*">
|
||||
<DataGridTextColumn.Binding>
|
||||
<Binding Path="Acc" UpdateSourceTrigger="PropertyChanged">
|
||||
<Binding.ValidationRules>
|
||||
<attribute:NumericValidationRule/>
|
||||
</Binding.ValidationRules>
|
||||
</Binding>
|
||||
</DataGridTextColumn.Binding>
|
||||
</DataGridTextColumn>
|
||||
|
||||
<DataGridTextColumn Header="{DynamicResource Dec}" Width="*">
|
||||
<DataGridTextColumn.Binding>
|
||||
<Binding Path="Dec" UpdateSourceTrigger="PropertyChanged">
|
||||
<Binding.ValidationRules>
|
||||
<attribute:NumericValidationRule/>
|
||||
</Binding.ValidationRules>
|
||||
</Binding>
|
||||
</DataGridTextColumn.Binding>
|
||||
</DataGridTextColumn>
|
||||
|
||||
<DataGridTextColumn Header="{DynamicResource Jerk}" Width="*">
|
||||
<DataGridTextColumn.Binding>
|
||||
<Binding Path="Jerk" UpdateSourceTrigger="PropertyChanged">
|
||||
<Binding.ValidationRules>
|
||||
<attribute:NumericValidationRule/>
|
||||
</Binding.ValidationRules>
|
||||
</Binding>
|
||||
</DataGridTextColumn.Binding>
|
||||
</DataGridTextColumn>
|
||||
|
||||
<DataGridTextColumn Header="{DynamicResource HighPercent}" Width="*">
|
||||
<DataGridTextColumn.Binding>
|
||||
<Binding Path="HighPercent" UpdateSourceTrigger="PropertyChanged">
|
||||
<Binding.ValidationRules>
|
||||
<attribute:NumericValidationRule/>
|
||||
</Binding.ValidationRules>
|
||||
</Binding>
|
||||
</DataGridTextColumn.Binding>
|
||||
</DataGridTextColumn>
|
||||
|
||||
<DataGridTextColumn Header="{DynamicResource MedianPercent}" Width="*">
|
||||
<DataGridTextColumn.Binding>
|
||||
<Binding Path="MedianPercent" UpdateSourceTrigger="PropertyChanged">
|
||||
<Binding.ValidationRules>
|
||||
<attribute:NumericValidationRule/>
|
||||
</Binding.ValidationRules>
|
||||
</Binding>
|
||||
</DataGridTextColumn.Binding>
|
||||
</DataGridTextColumn>
|
||||
|
||||
<DataGridTextColumn Header="{DynamicResource LowPercent}" Width="*">
|
||||
<DataGridTextColumn.Binding>
|
||||
<Binding Path="LowPercent" UpdateSourceTrigger="PropertyChanged">
|
||||
<Binding.ValidationRules>
|
||||
<attribute:NumericValidationRule/>
|
||||
</Binding.ValidationRules>
|
||||
</Binding>
|
||||
</DataGridTextColumn.Binding>
|
||||
</DataGridTextColumn>
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<Border Grid.Row="2">
|
||||
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||||
<TextBlock Margin="5,0" Style="{StaticResource LargeBlodTextblockStyle}" Text="{DynamicResource SpeedMode}"/>
|
||||
<ComboBox Width="150" DisplayMemberPath="Description" FontFamily="微软雅黑"
|
||||
SelectedValuePath="Value"
|
||||
FontSize="18"
|
||||
FontWeight="Bold"
|
||||
SelectedValue="{Binding SpeedParaSysSetting.CurrentSpeedType, Mode=TwoWay}"
|
||||
ItemsSource="{StaticResource SpeedEnums}" Margin="5,0">
|
||||
|
||||
</ComboBox>
|
||||
<Button Content="{DynamicResource Save}" HorizontalAlignment="Right" Style="{StaticResource SaveButtonStyle}" VerticalAlignment="Center" Width="110" Height="35" Click="{mw:Action btnSet}"/>
|
||||
</StackPanel>
|
||||
|
||||
</Border>
|
||||
</Grid>
|
||||
</Border>
|
||||
|
||||
</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.ParaSetting.View
|
||||
{
|
||||
/// <summary>
|
||||
/// SpeedSettingView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class SpeedSettingView : UserControl
|
||||
{
|
||||
public SpeedSettingView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user