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.
		
		
		
		
		
			
		
			
				
					
					
						
							53 lines
						
					
					
						
							3.6 KiB
						
					
					
				
			
		
		
	
	
							53 lines
						
					
					
						
							3.6 KiB
						
					
					
				<UserControl x:Class="Kingo.Plugin.SystemSetting.View.ViewSystemSetting.ViewLayterAttributeSetting" | 
						|
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | 
						|
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | 
						|
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | 
						|
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | 
						|
             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.RowDefinitions> | 
						|
                    <RowDefinition Height="auto"/> | 
						|
                    <RowDefinition/> | 
						|
                </Grid.RowDefinitions> | 
						|
                <Grid.ColumnDefinitions> | 
						|
                    <ColumnDefinition Width="100"/> | 
						|
                    <ColumnDefinition /> | 
						|
                </Grid.ColumnDefinitions> | 
						|
                <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 LayerName}" 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> | 
						|
                    <ListBox x:Name="lbTBList" SelectionChanged="LbTBList_SelectionChanged" ItemsSource="{Binding}" ItemTemplate="{StaticResource ItemNode}" ></ListBox> | 
						|
                </Grid> | 
						|
                <Grid x:Name="gridLayerAttribute" Grid.Column="1" Grid.Row="1"> | 
						|
                    <dxg:TreeListControl x:Name="treeList" AutoGenerateColumns="None"> | 
						|
                        <dxg:TreeListControl.Columns> | 
						|
                            <dxg:TreeListColumn Header="图层别名" Name="colFullName" FieldName="AliasName"/> | 
						|
                            <dxg:TreeListColumn Header="图层名称" Name="colJobTitle" FieldName="Name"/> | 
						|
                            <dxg:TreeListColumn Header="是否展示" Name="colCountry" FieldName="Display" Width="130"/> | 
						|
                            <dxg:TreeListColumn Header="展示条件" Name="colBirthDate" FieldName="DisplayWhere" Width="80"/> | 
						|
                        </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}}"  | 
						|
                                ShowTotalSummary="True"  AllowScrollAnimation="True"/> | 
						|
                        </dxg:TreeListControl.View> | 
						|
                    </dxg:TreeListControl> | 
						|
                </Grid> | 
						|
            </Grid> | 
						|
        </GroupBox> | 
						|
    </Grid> | 
						|
</UserControl> |