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.
38 lines
2.2 KiB
38 lines
2.2 KiB
<UserControl x:Class="KPlan.Forms.Config_Classification"
|
|
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:KPlan.Forms"
|
|
mc:Ignorable="d"
|
|
UseLayoutRounding="True"
|
|
d:DesignHeight="450" d:DesignWidth="800" >
|
|
<Grid Background="White">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"/>
|
|
<ColumnDefinition Width="*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<GroupBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="0" Margin="5,0,5,5">
|
|
<GroupBox.Header>EPLAN元器件组</GroupBox.Header>
|
|
<TreeView Name="tree_Part_Groups" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MouseDoubleClick="Tree_Part_Groups_MouseDoubleClick" />
|
|
</GroupBox>
|
|
<GroupBox HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="1" Margin="0,0,5,5">
|
|
<GroupBox.Header>分类映射关系</GroupBox.Header>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="auto"/>
|
|
</Grid.RowDefinitions>
|
|
<DataGrid Grid.Row="0" CanUserAddRows="False" ItemsSource="{Binding}" AutoGenerateColumns="False" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" HeadersVisibility="Column" Name="table_Class" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="200" ColumnHeaderHeight="25" RowHeight="23" CanUserResizeRows="False">
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn IsReadOnly="True" Header="EPLAN组ID" Width="180" Binding="{Binding from}"/>
|
|
<DataGridTextColumn IsReadOnly="False" Header="TC分类ID" Width="180" Binding="{Binding to}"/>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
</Grid>
|
|
|
|
</GroupBox>
|
|
|
|
</Grid>
|
|
</UserControl>
|