|
|
@@ -308,259 +308,266 @@
|
|
|
Grid.Column="1"
|
|
|
Margin="0,2,0,0"
|
|
|
IsChecked="{Binding SelectProcedure.IsExcludeNearPoint,Mode=TwoWay}" />
|
|
|
- <!--点位输出的模式-->
|
|
|
<TextBlock Grid.Row="4"
|
|
|
- Grid.Column="0"
|
|
|
- Text="{lex:Loc 点位输出的模式,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <ComboBox Grid.Row="4"
|
|
|
- Grid.Column="1"
|
|
|
- SelectedItem="{Binding SelectProcedure.OutputPointMode,Mode=TwoWay}"
|
|
|
- ItemsSource="{ext:EnumBindingSource EnumType=enums:OutputPointMode}"
|
|
|
- BorderBrush="LightGray"
|
|
|
- BorderThickness="1"
|
|
|
- Margin="0,2,0,0" />
|
|
|
- <!--视觉引导模式(先拍再振/先振再拍)-->
|
|
|
+ Grid.Column="0"
|
|
|
+ Text="是否启用当前流程图像显示" />
|
|
|
+ <CheckBox Grid.Row="4"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,2,0,0"
|
|
|
+ IsChecked="{Binding SelectProcedure.IsImageVisibility,Mode=TwoWay}" />
|
|
|
+ <!--点位输出的模式-->
|
|
|
<TextBlock Grid.Row="5"
|
|
|
- Grid.Column="0"
|
|
|
- Text="{lex:Loc 视觉引导模式,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
+ Grid.Column="0"
|
|
|
+ Text="{lex:Loc 点位输出的模式,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
<ComboBox Grid.Row="5"
|
|
|
- Grid.Column="1"
|
|
|
- SelectedItem="{Binding SelectProcedure.VibrationModel,Mode=TwoWay}"
|
|
|
- ItemsSource="{ext:EnumBindingSource EnumType=enums:VibrationModel}"
|
|
|
- BorderBrush="LightGray"
|
|
|
- BorderThickness="1"
|
|
|
- Margin="0,2,0,0" />
|
|
|
- <!--拍照失败Feeder振动最大次数-->
|
|
|
+ Grid.Column="1"
|
|
|
+ SelectedItem="{Binding SelectProcedure.OutputPointMode,Mode=TwoWay}"
|
|
|
+ ItemsSource="{ext:EnumBindingSource EnumType=enums:OutputPointMode}"
|
|
|
+ BorderBrush="LightGray"
|
|
|
+ BorderThickness="1"
|
|
|
+ Margin="0,2,0,0" />
|
|
|
+ <!--视觉引导模式(先拍再振/先振再拍)-->
|
|
|
<TextBlock Grid.Row="6"
|
|
|
- Grid.Column="0"
|
|
|
- Text="{lex:Loc Feeder最大振动拍照次数,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <mah:NumericUpDown Grid.Row="6"
|
|
|
- Grid.Column="1"
|
|
|
- Maximum="100"
|
|
|
- Minimum="1"
|
|
|
- StringFormat="{}{0:N0}"
|
|
|
- Value="{Binding SelectProcedure.FeederFailLimit,Mode=TwoWay}" />
|
|
|
- <!--每次发送给机器人的点数最大值-->
|
|
|
+ Grid.Column="0"
|
|
|
+ Text="{lex:Loc 视觉引导模式,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
+ <ComboBox Grid.Row="6"
|
|
|
+ Grid.Column="1"
|
|
|
+ SelectedItem="{Binding SelectProcedure.VibrationModel,Mode=TwoWay}"
|
|
|
+ ItemsSource="{ext:EnumBindingSource EnumType=enums:VibrationModel}"
|
|
|
+ BorderBrush="LightGray"
|
|
|
+ BorderThickness="1"
|
|
|
+ Margin="0,2,0,0" />
|
|
|
+ <!--拍照失败Feeder振动最大次数-->
|
|
|
<TextBlock Grid.Row="7"
|
|
|
- Grid.Column="0"
|
|
|
- Text="{lex:Loc 发送给机器人的最大点位数量,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
+ Grid.Column="0"
|
|
|
+ Text="{lex:Loc Feeder最大振动拍照次数,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
<mah:NumericUpDown Grid.Row="7"
|
|
|
- Grid.Column="1"
|
|
|
- Maximum="100"
|
|
|
- Minimum="1"
|
|
|
- StringFormat="{}{0:N0}"
|
|
|
- Value="{Binding SelectProcedure.OutputPointCountMax,Mode=TwoWay}" />
|
|
|
- <!--视觉流程输出项之间的分割符-->
|
|
|
+ Grid.Column="1"
|
|
|
+ Maximum="100"
|
|
|
+ Minimum="1"
|
|
|
+ StringFormat="{}{0:N0}"
|
|
|
+ Value="{Binding SelectProcedure.FeederFailLimit,Mode=TwoWay}" />
|
|
|
+ <!--每次发送给机器人的点数最大值-->
|
|
|
<TextBlock Grid.Row="8"
|
|
|
- Grid.Column="0"
|
|
|
- Text="{lex:Loc 视觉流程输出项之间的分割符,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <TextBox Grid.Row="8"
|
|
|
- Grid.Column="1"
|
|
|
- Text="{Binding SelectProcedure.OutputSeparator,Mode=TwoWay}"
|
|
|
- BorderThickness="1"
|
|
|
- Padding="0"
|
|
|
- HorizontalAlignment="Stretch"
|
|
|
- Margin="0,2,0,0" />
|
|
|
- <!--保存图像-->
|
|
|
+ Grid.Column="0"
|
|
|
+ Text="{lex:Loc 发送给机器人的最大点位数量,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
+ <mah:NumericUpDown Grid.Row="8"
|
|
|
+ Grid.Column="1"
|
|
|
+ Maximum="100"
|
|
|
+ Minimum="1"
|
|
|
+ StringFormat="{}{0:N0}"
|
|
|
+ Value="{Binding SelectProcedure.OutputPointCountMax,Mode=TwoWay}" />
|
|
|
+ <!--视觉流程输出项之间的分割符-->
|
|
|
<TextBlock Grid.Row="9"
|
|
|
- Grid.Column="0"
|
|
|
- Text="{lex:Loc 保存图像,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
+ Grid.Column="0"
|
|
|
+ Text="{lex:Loc 视觉流程输出项之间的分割符,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
+ <TextBox Grid.Row="9"
|
|
|
+ Grid.Column="1"
|
|
|
+ Text="{Binding SelectProcedure.OutputSeparator,Mode=TwoWay}"
|
|
|
+ BorderThickness="1"
|
|
|
+ Padding="0"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ Margin="0,2,0,0" />
|
|
|
+ <!--保存图像-->
|
|
|
+ <TextBlock Grid.Row="10"
|
|
|
+ Grid.Column="0"
|
|
|
+ Text="{lex:Loc 保存图像,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
<CheckBox x:Name="chbSaveImage"
|
|
|
- Grid.Row="9"
|
|
|
- Grid.Column="1"
|
|
|
- d:IsChecked="True"
|
|
|
- Content="{lex:Loc 是否保存,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
|
|
|
- IsChecked="{Binding SelectProcedure.IsSaveImage,Mode=TwoWay}"
|
|
|
- Style="{StaticResource MaterialDesignLightCheckBox}" />
|
|
|
+ Grid.Row="10"
|
|
|
+ Grid.Column="1"
|
|
|
+ d:IsChecked="True"
|
|
|
+ Content="{lex:Loc 是否保存,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}"
|
|
|
+ IsChecked="{Binding SelectProcedure.IsSaveImage,Mode=TwoWay}"
|
|
|
+ Style="{StaticResource MaterialDesignLightCheckBox}" />
|
|
|
<!--保存图像模式-->
|
|
|
- <TextBlock Grid.Row="10"
|
|
|
- Grid.Column="0"
|
|
|
- Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
- Text="{lex:Loc 图像存储模式,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <ComboBox Grid.Row="10"
|
|
|
- Grid.Column="1"
|
|
|
- Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
- materialDesign:HintAssist.Hint="{lex:Loc 图像存储模式}"
|
|
|
- SelectedItem="{Binding SelectProcedure.SaveImageModel,Mode=TwoWay}"
|
|
|
- ItemsSource="{ext:EnumBindingSource EnumType=enums:ProcedureSaveImageModel}" />
|
|
|
- <!--保存图像路径存放模式-->
|
|
|
<TextBlock Grid.Row="11"
|
|
|
- Grid.Column="0"
|
|
|
- Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
- Text="{lex:Loc 图像路径存储方式,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
+ Grid.Column="0"
|
|
|
+ Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
+ Text="{lex:Loc 图像存储模式,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
<ComboBox Grid.Row="11"
|
|
|
- Grid.Column="1"
|
|
|
- Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
- materialDesign:HintAssist.Hint="{lex:Loc 图像路径存储方式}"
|
|
|
- SelectedItem="{Binding SelectProcedure.SaveImagePathModel,Mode=TwoWay}"
|
|
|
- ItemsSource="{ext:EnumBindingSource EnumType=enums:ProcedureSaveImagePathModel}" />
|
|
|
- <!--保存路径-->
|
|
|
+ Grid.Column="1"
|
|
|
+ Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
+ materialDesign:HintAssist.Hint="{lex:Loc 图像存储模式}"
|
|
|
+ SelectedItem="{Binding SelectProcedure.SaveImageModel,Mode=TwoWay}"
|
|
|
+ ItemsSource="{ext:EnumBindingSource EnumType=enums:ProcedureSaveImageModel}" />
|
|
|
+ <!--保存图像路径存放模式-->
|
|
|
<TextBlock Grid.Row="12"
|
|
|
- Grid.Column="0"
|
|
|
- Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
- Text="{lex:Loc 保存路径,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <Grid Grid.Row="12"
|
|
|
- Grid.Column="1"
|
|
|
- Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}">
|
|
|
+ Grid.Column="0"
|
|
|
+ Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
+ Text="{lex:Loc 图像路径存储方式,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
+ <ComboBox Grid.Row="12"
|
|
|
+ Grid.Column="1"
|
|
|
+ Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
+ materialDesign:HintAssist.Hint="{lex:Loc 图像路径存储方式}"
|
|
|
+ SelectedItem="{Binding SelectProcedure.SaveImagePathModel,Mode=TwoWay}"
|
|
|
+ ItemsSource="{ext:EnumBindingSource EnumType=enums:ProcedureSaveImagePathModel}" />
|
|
|
+ <!--保存路径-->
|
|
|
+ <TextBlock Grid.Row="13"
|
|
|
+ Grid.Column="0"
|
|
|
+ Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
+ Text="{lex:Loc 保存路径,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
+ <Grid Grid.Row="13"
|
|
|
+ Grid.Column="1"
|
|
|
+ Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="*" />
|
|
|
<ColumnDefinition Width="auto" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
<TextBox BorderThickness="1"
|
|
|
- BorderBrush="LightGray"
|
|
|
- HorizontalAlignment="Stretch"
|
|
|
- materialDesign:HintAssist.Hint="{lex:Loc 保存路径}"
|
|
|
- materialDesign:HintAssist.FloatingHintHorizontalAlignment="Left"
|
|
|
- Text="{Binding SelectProcedure.SavePath,Mode=TwoWay}" />
|
|
|
+ BorderBrush="LightGray"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ materialDesign:HintAssist.Hint="{lex:Loc 保存路径}"
|
|
|
+ materialDesign:HintAssist.FloatingHintHorizontalAlignment="Left"
|
|
|
+ Text="{Binding SelectProcedure.SavePath,Mode=TwoWay}" />
|
|
|
<Button Grid.Column="1"
|
|
|
- ToolTip="{lex:Loc 选择路径}"
|
|
|
- Command="{Binding SelectSaveImagePathCommand}">
|
|
|
+ ToolTip="{lex:Loc 选择路径}"
|
|
|
+ Command="{Binding SelectSaveImagePathCommand}">
|
|
|
<Button.Content>
|
|
|
<materialDesign:PackIcon Kind="FolderOpenOutline" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</Grid>
|
|
|
<!--是否压缩图像-->
|
|
|
- <TextBlock Grid.Row="13"
|
|
|
- Grid.Column="0"
|
|
|
- Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
- Text="{lex:Loc 压缩图像,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
- <CheckBox Grid.Row="13"
|
|
|
- Grid.Column="1"
|
|
|
- Content="{lex:Loc 是否压缩}"
|
|
|
- Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
- IsChecked="{Binding SelectProcedure.IsCompress,Mode=TwoWay}"
|
|
|
- Style="{StaticResource MaterialDesignLightCheckBox}" />
|
|
|
- <!--是否延迟保存图片-->
|
|
|
<TextBlock Grid.Row="14"
|
|
|
- Grid.Column="0"
|
|
|
- Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
- Text="{lex:Loc 延迟保存图片,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
+ Grid.Column="0"
|
|
|
+ Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
+ Text="{lex:Loc 压缩图像,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
<CheckBox Grid.Row="14"
|
|
|
- Grid.Column="1"
|
|
|
- Content="{lex:Loc 是否延迟保存图片}"
|
|
|
- Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
- IsChecked="{Binding SelectProcedure.IsDelaySaveImage,Mode=TwoWay}"
|
|
|
- Style="{StaticResource MaterialDesignLightCheckBox}" />
|
|
|
- <!--图片名称格式-->
|
|
|
+ Grid.Column="1"
|
|
|
+ Content="{lex:Loc 是否压缩}"
|
|
|
+ Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
+ IsChecked="{Binding SelectProcedure.IsCompress,Mode=TwoWay}"
|
|
|
+ Style="{StaticResource MaterialDesignLightCheckBox}" />
|
|
|
+ <!--是否延迟保存图片-->
|
|
|
<TextBlock Grid.Row="15"
|
|
|
- Grid.Column="0"
|
|
|
- Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
- Text="图片名称格式:" />
|
|
|
- <TextBox Grid.Row="15"
|
|
|
- Grid.Column="1"
|
|
|
- HorizontalAlignment="Stretch"
|
|
|
- Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
- Text="{Binding SelectProcedure.ImageFileNameFormat,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
|
|
|
+ Grid.Column="0"
|
|
|
+ Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
+ Text="{lex:Loc 延迟保存图片,Converter={StaticResource StringFormatConverter},ConverterParameter='{}{0}: '}" />
|
|
|
+ <CheckBox Grid.Row="15"
|
|
|
+ Grid.Column="1"
|
|
|
+ Content="{lex:Loc 是否延迟保存图片}"
|
|
|
+ Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
+ IsChecked="{Binding SelectProcedure.IsDelaySaveImage,Mode=TwoWay}"
|
|
|
+ Style="{StaticResource MaterialDesignLightCheckBox}" />
|
|
|
+ <!--图片名称格式-->
|
|
|
+ <TextBlock Grid.Row="16"
|
|
|
+ Grid.Column="0"
|
|
|
+ Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
+ Text="{lex:Loc 图片名称格式}" />
|
|
|
+ <TextBox Grid.Row="16"
|
|
|
+ Grid.Column="1"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}"
|
|
|
+ Text="{Binding SelectProcedure.ImageFileNameFormat,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
|
|
|
</TextBox>
|
|
|
<!--示例-->
|
|
|
- <StackPanel Grid.Row="16"
|
|
|
- Grid.Column="0"
|
|
|
- Grid.ColumnSpan="2"
|
|
|
- Orientation="Vertical"
|
|
|
- Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}">
|
|
|
+ <StackPanel Grid.Row="17"
|
|
|
+ Grid.Column="0"
|
|
|
+ Grid.ColumnSpan="2"
|
|
|
+ Orientation="Vertical"
|
|
|
+ Visibility="{Binding ElementName=chbSaveImage,Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}}">
|
|
|
<TextBlock Text="示例:{ProductSN}_Daisy_KB Screw _01 _{CameraName}-Locate_{ShotCount}_WhiteRingLight_{Result}_{DateTime:yyyy-MM-dd_HH-mm-ss}"
|
|
|
- Foreground="LightGray"
|
|
|
- FontSize="10"
|
|
|
- TextTrimming="CharacterEllipsis"
|
|
|
- TextWrapping="Wrap"
|
|
|
- Width="{Binding Width, ElementName=grid}" />
|
|
|
- <TextBlock Text="转换后的名称:"
|
|
|
- Foreground="Gray"
|
|
|
- FontSize="10" />
|
|
|
+ Foreground="LightGray"
|
|
|
+ FontSize="10"
|
|
|
+ TextTrimming="CharacterEllipsis"
|
|
|
+ TextWrapping="Wrap"
|
|
|
+ Width="{Binding Width, ElementName=grid}" />
|
|
|
+ <TextBlock Text="{lex:Loc 转换后的名称}"
|
|
|
+ Foreground="Gray"
|
|
|
+ FontSize="10" />
|
|
|
<TextBlock Text="{Binding SelectProcedure.ImageFileNameFormat,Converter={StaticResource ImageFileNameFormatConverter},Mode=TwoWay}"
|
|
|
- Foreground="Gray"
|
|
|
- FontSize="10"
|
|
|
- TextTrimming="CharacterEllipsis"
|
|
|
- TextWrapping="Wrap"
|
|
|
- Width="{Binding Width, ElementName=grid}" />
|
|
|
+ Foreground="Gray"
|
|
|
+ FontSize="10"
|
|
|
+ TextTrimming="CharacterEllipsis"
|
|
|
+ TextWrapping="Wrap"
|
|
|
+ Width="{Binding Width, ElementName=grid}" />
|
|
|
</StackPanel>
|
|
|
|
|
|
<!--自定义参数-->
|
|
|
- <GroupBox Grid.Row="17"
|
|
|
- Grid.Column="0"
|
|
|
- Grid.ColumnSpan="2"
|
|
|
- HorizontalAlignment="Stretch"
|
|
|
- Header="{lex:Loc 自定义参数}"
|
|
|
- FontSize="14"
|
|
|
- Style="{x:Null}">
|
|
|
+ <GroupBox Grid.Row="18"
|
|
|
+ Grid.Column="0"
|
|
|
+ Grid.ColumnSpan="2"
|
|
|
+ HorizontalAlignment="Stretch"
|
|
|
+ Header="{lex:Loc 自定义参数}"
|
|
|
+ FontSize="14"
|
|
|
+ Style="{x:Null}">
|
|
|
<DockPanel>
|
|
|
<StackPanel DockPanel.Dock="Top"
|
|
|
- Orientation="Horizontal">
|
|
|
+ Orientation="Horizontal">
|
|
|
<Button Content="{materialDesign:PackIcon Kind=AddCircle}"
|
|
|
- Style="{StaticResource MahApps.Styles.Button.Flat}"
|
|
|
- Command="{Binding AddUserDefineParameterCommand}" />
|
|
|
+ Style="{StaticResource MahApps.Styles.Button.Flat}"
|
|
|
+ Command="{Binding AddUserDefineParameterCommand}" />
|
|
|
<Button Content="{materialDesign:PackIcon Kind=RemoveCircle}"
|
|
|
- Style="{StaticResource MahApps.Styles.Button.Flat}"
|
|
|
- Margin="5,0"
|
|
|
- Command="{Binding RemoveUserDefineParameterCommand}" />
|
|
|
+ Style="{StaticResource MahApps.Styles.Button.Flat}"
|
|
|
+ Margin="5,0"
|
|
|
+ Command="{Binding RemoveUserDefineParameterCommand}" />
|
|
|
</StackPanel>
|
|
|
<DataGrid HorizontalAlignment="Stretch"
|
|
|
- VerticalAlignment="Stretch"
|
|
|
- SelectedItem="{Binding SelectedUserDefineParam,Mode=TwoWay}"
|
|
|
- ItemsSource="{Binding SelectProcedure.UserDefineParameters,Mode=TwoWay}"
|
|
|
- HeadersVisibility="Column"
|
|
|
- GridLinesVisibility="All"
|
|
|
- CanUserAddRows="False"
|
|
|
- CanUserDeleteRows="False"
|
|
|
- SelectionUnit="FullRow"
|
|
|
- SelectionMode="Single"
|
|
|
- AutoGenerateColumns="False"
|
|
|
- IsReadOnly="False"
|
|
|
- RowHeight="30"
|
|
|
- ColumnWidth="*"
|
|
|
- Height="Auto"
|
|
|
- MinHeight="100"
|
|
|
- MaxHeight="150"
|
|
|
- BorderThickness="1">
|
|
|
+ VerticalAlignment="Stretch"
|
|
|
+ SelectedItem="{Binding SelectedUserDefineParam,Mode=TwoWay}"
|
|
|
+ ItemsSource="{Binding SelectProcedure.UserDefineParameters,Mode=TwoWay}"
|
|
|
+ HeadersVisibility="Column"
|
|
|
+ GridLinesVisibility="All"
|
|
|
+ CanUserAddRows="False"
|
|
|
+ CanUserDeleteRows="False"
|
|
|
+ SelectionUnit="FullRow"
|
|
|
+ SelectionMode="Single"
|
|
|
+ AutoGenerateColumns="False"
|
|
|
+ IsReadOnly="False"
|
|
|
+ RowHeight="30"
|
|
|
+ ColumnWidth="*"
|
|
|
+ Height="Auto"
|
|
|
+ MinHeight="100"
|
|
|
+ MaxHeight="150"
|
|
|
+ BorderThickness="1">
|
|
|
<!-- 提高选中行可见性 -->
|
|
|
<DataGrid.Resources>
|
|
|
<Style TargetType="DataGridRow">
|
|
|
<Setter Property="Background"
|
|
|
- Value="Transparent" />
|
|
|
+ Value="Transparent" />
|
|
|
<Style.Triggers>
|
|
|
<Trigger Property="IsSelected"
|
|
|
- Value="True">
|
|
|
+ Value="True">
|
|
|
<Setter Property="Background"
|
|
|
- Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />
|
|
|
+ Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />
|
|
|
<Setter Property="Foreground"
|
|
|
- Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}" />
|
|
|
+ Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsMouseOver"
|
|
|
- Value="True">
|
|
|
+ Value="True">
|
|
|
<Setter Property="Background"
|
|
|
- Value="{DynamicResource {x:Static SystemColors.ControlLightBrushKey}}" />
|
|
|
+ Value="{DynamicResource {x:Static SystemColors.ControlLightBrushKey}}" />
|
|
|
</Trigger>
|
|
|
</Style.Triggers>
|
|
|
</Style>
|
|
|
</DataGrid.Resources>
|
|
|
<DataGrid.Columns>
|
|
|
<DataGridTextColumn Header="{lex:Loc 名称}"
|
|
|
- Width="*"
|
|
|
- MinWidth="100"
|
|
|
- Binding="{Binding ParamName, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
+ Width="*"
|
|
|
+ MinWidth="100"
|
|
|
+ Binding="{Binding ParamName, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
<DataGridTextColumn Header="{lex:Loc 值}"
|
|
|
- Width="*"
|
|
|
- MinWidth="100"
|
|
|
- Binding="{Binding ParamValue, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
+ Width="*"
|
|
|
+ MinWidth="100"
|
|
|
+ Binding="{Binding ParamValue, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
</DataGrid.Columns>
|
|
|
</DataGrid>
|
|
|
</DockPanel>
|
|
|
</GroupBox>
|
|
|
- <TextBlock Grid.Row="18"
|
|
|
- Grid.Column="0"
|
|
|
- Text="{lex:Loc 重写视觉处理逻辑}" />
|
|
|
- <Button Grid.Row="18"
|
|
|
- Grid.Column="1"
|
|
|
- Margin="0,2,0,0"
|
|
|
- Command="{Binding OverrideVisionTaskCommand}">
|
|
|
+ <TextBlock Grid.Row="19"
|
|
|
+ Grid.Column="0"
|
|
|
+ Text="{lex:Loc 重写视觉处理逻辑}" />
|
|
|
+ <Button Grid.Row="19"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,2,0,0"
|
|
|
+ Command="{Binding OverrideVisionTaskCommand}">
|
|
|
<Button.Content>
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
<materialDesign:PackIcon Kind="ScriptTextPlayOutline"
|
|
|
- VerticalAlignment="Center" />
|
|
|
+ VerticalAlignment="Center" />
|
|
|
<TextBlock Text="{lex:Loc 脚本}"
|
|
|
- FontSize="{DynamicResource Font.Size.Title4}"
|
|
|
- Margin="8,0,0,0" />
|
|
|
+ FontSize="{DynamicResource Font.Size.Title4}"
|
|
|
+ Margin="8,0,0,0" />
|
|
|
</StackPanel>
|
|
|
</Button.Content>
|
|
|
</Button>
|