You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
3.5 KiB
47 lines
3.5 KiB
<UserControl x:Class="Kingo.Plugin.SystemSetting.View.ViewSystemSetting.ViewRuleSetting" |
|
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:dxg="clr-namespace:DevExpress.Xpf.Grid;assembly=DevExpress.Xpf.Grid.v17.1" |
|
mc:Ignorable="d" |
|
d:DesignHeight="450" d:DesignWidth="800"> |
|
<Grid Background="White"> |
|
<GroupBox Header="单图斑质检规则设置" HorizontalAlignment="Stretch" Margin="8" VerticalAlignment="Stretch"> |
|
<Grid> |
|
<Grid x:Name="gridTBList" Grid.RowSpan="2"> |
|
<Grid.Resources> |
|
<HierarchicalDataTemplate x:Key="ItemNode" ItemsSource="{Binding}"> |
|
<StackPanel Orientation="Horizontal" Height="28" ContextMenu="{Binding cMenu}"> |
|
<TextBlock Name="txtBox" Text="{Binding CfgName}" FontSize="13" VerticalAlignment="Center" Margin="3,0,0,0"> |
|
</TextBlock> |
|
</StackPanel> |
|
<HierarchicalDataTemplate.Triggers> |
|
<DataTrigger Binding="{Binding IsOpenEdit,Mode=TwoWay}" Value="true"> |
|
<Setter TargetName="txtBox" Property="Foreground" Value="Red" /> |
|
</DataTrigger> |
|
</HierarchicalDataTemplate.Triggers> |
|
</HierarchicalDataTemplate> |
|
</Grid.Resources> |
|
</Grid> |
|
<Grid x:Name="gridLayerAttribute" Grid.Column="1" Grid.Row="1"> |
|
<dxg:TreeListControl x:Name="treeList" AutoGenerateColumns="None"> |
|
<dxg:TreeListControl.Columns> |
|
<dxg:TreeListColumn Header="规则编码" FieldName="RuleCode" Width="50" AllowEditing="False"/> |
|
<dxg:TreeListColumn Header="规则名称" FieldName="RuleName" Width="100" AllowEditing="False"/> |
|
<dxg:TreeListColumn Header="规则类别" FieldName="ErrorType" Width="50" AllowEditing="False"/> |
|
<dxg:TreeListColumn Header="错误提示" FieldName="ErrorTip" Width="50" AllowEditing="False"/> |
|
<dxg:TreeListColumn Header="规则内容" FieldName="RuleContent" Width="50" AllowEditing="False"/> |
|
<dxg:TreeListColumn Header="是否选择" FieldName="IsCheck" Width="110"/> |
|
</dxg:TreeListControl.Columns> |
|
<dxg:TreeListControl.View> |
|
<dxg:TreeListView x:Name="view" KeyFieldName="ID" ParentFieldName="PID" AutoWidth="True" AllowPerPixelScrolling="True" AutoExpandAllNodes="True" |
|
IsTotalSummaryMenuEnabled="{Binding IsColumnMenuEnabled, RelativeSource={RelativeSource Self}}" AllowCascadeUpdate="{Binding AllowPerPixelScrolling, RelativeSource={RelativeSource Self}}" |
|
CellValueChanging="View_CellValueChanged" ShowTotalSummary="True" AllowScrollAnimation="True"/> |
|
</dxg:TreeListControl.View> |
|
</dxg:TreeListControl> |
|
</Grid> |
|
</Grid> |
|
</GroupBox> |
|
</Grid> |
|
</UserControl> |