|
|
|
|
<UserControl x:Class="Kingo.Plugin.BatchDataLoad.View.UcTreeListViewControl"
|
|
|
|
|
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="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
|
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
|
|
|
xmlns:local="clr-namespace:Kingo.Plugin.BatchDataLoad.View"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
|
|
|
<UserControl.Resources>
|
|
|
|
|
<!--<Converter:BaseValueConverter x:Key="Color_Key" />-->
|
|
|
|
|
<Style TargetType="dxg:TreeListView" x:Key="ViewStyle">
|
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"></Setter>
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"></Setter>
|
|
|
|
|
<Setter Property="AllowEditing" Value="False"></Setter>
|
|
|
|
|
<Setter Property="TextBlock.TextAlignment" Value="Center"></Setter>
|
|
|
|
|
<Setter Property="AutoWidth" Value="True"></Setter>
|
|
|
|
|
<Setter Property="ShowAutoFilterRow" Value="False"></Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
<!--<Style TargetType="{x:Type dxg:RowControl}" x:Key="RowColor">
|
|
|
|
|
<Setter Property="Background" Value="{Binding Row.RowsColor,Converter={StaticResource Color_Key}}"></Setter>
|
|
|
|
|
</Style>-->
|
|
|
|
|
</UserControl.Resources>
|
|
|
|
|
<Grid>
|
|
|
|
|
<dxg:TreeListControl x:Name="treeListControl" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="1" Grid.Row="1">
|
|
|
|
|
<dxg:TreeListControl.View>
|
|
|
|
|
<dxg:TreeListView AutoExpandAllNodes="True" ShowAutoFilterRow="False" ParentFieldName="PID" KeyFieldName="ID" EditorButtonShowMode="ShowAlways"/>
|
|
|
|
|
</dxg:TreeListControl.View>
|
|
|
|
|
<dxg:TreeListColumn Header="选择" FieldName="IsChecked" Width="50" HorizontalHeaderContentAlignment="Center"/>
|
|
|
|
|
<dxg:TreeListColumn FieldName="LayerName" Width="240" AllowEditing="False" Header="名称" HorizontalHeaderContentAlignment="Center">
|
|
|
|
|
<dxg:TreeListColumn.CellTemplate>
|
|
|
|
|
<DataTemplate>
|
|
|
|
|
<Label HorizontalAlignment="Stretch" VerticalAlignment="Stretch" VerticalContentAlignment="Center" Content="{Binding Value}" ></Label>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</dxg:TreeListColumn.CellTemplate>
|
|
|
|
|
</dxg:TreeListColumn>
|
|
|
|
|
<dxg:TreeListColumn FieldName="FcPath" AllowEditing="false" Width="*" Header="路径" HorizontalHeaderContentAlignment="Center"/>
|
|
|
|
|
<dxg:TreeListColumn FieldName="FileSize" Width="80" AllowEditing="false" Header="大小" HorizontalHeaderContentAlignment="Center"/>
|
|
|
|
|
</dxg:TreeListControl>
|
|
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|