年度变更建库软件5.0版本
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.

57 lines
4.5 KiB

6 months ago
<UserControl x:Class="Kingo.Plugin.SystemSetting.View.ViewSystemSetting.ViewLayerCfgSetting"
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"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="880">
<Grid Background="White">
<GroupBox Header="图层配置页面详情" HorizontalAlignment="Stretch" Margin="8" VerticalAlignment="Stretch">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition />
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
<Label Content="图层配置:" VerticalContentAlignment="Center" />
<dxg:GridControl Grid.Row="1" x:Name="dgCtrl" ItemsSource="{Binding}" AutoGenerateColumns="None" Margin="5" EnableSmartColumnsGeneration="True" >
<dxg:GridControl.View>
<dxg:TableView AllowEditing="False" IsColumnMenuEnabled="False" AllowGrouping="False" AllowColumnMoving="False" AllowColumnFiltering="False" AllowResizing="True" AllowSorting="False" ShowGroupPanel="False"/>
</dxg:GridControl.View>
<dxg:GridColumn FieldName="FcName" Header="图层名" AllowEditing="True" Width="100" HorizontalHeaderContentAlignment="Center" IsEnabled="True"/>
<dxg:GridColumn FieldName="LayerName" Header="图层别名" Width="120" HorizontalHeaderContentAlignment="Center" IsEnabled="False"/>
<dxg:GridColumn FieldName="MinScale" Header="最小比例尺" AllowEditing="True" Width="70" HorizontalHeaderContentAlignment="Center" IsEnabled="False"/>
<dxg:GridColumn FieldName="MaxScale" Header="最大比例尺" AllowEditing="True" Width="70" HorizontalHeaderContentAlignment="Center" IsEnabled="False"/>
<dxg:GridColumn FieldName="Transparency" Header="图层透明度" AllowEditing="True" Width="70" HorizontalHeaderContentAlignment="Center" IsEnabled="True"/>
<dxg:GridColumn FieldName="Visible" Header="是否显示" Width="70" AllowSorting="False" AllowMoving="False" AllowEditing="True" HorizontalHeaderContentAlignment="Center" >
<dxg:GridColumn.EditSettings>
<dxe:CheckEditSettings/>
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
<dxg:GridColumn FieldName="Selectable" Header="是否可选" Width="70" AllowSorting="False" AllowMoving="False" AllowEditing="True" HorizontalHeaderContentAlignment="Center" >
<dxg:GridColumn.EditSettings>
<dxe:CheckEditSettings/>
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
<dxg:GridColumn FieldName="AllowEdit" Header="是否可编辑" Width="70" AllowSorting="False" AllowMoving="False" AllowEditing="True" HorizontalHeaderContentAlignment="Center" >
<dxg:GridColumn.EditSettings>
<dxe:CheckEditSettings/>
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
<dxg:GridColumn FieldName="DefinitionExpression" Header="过滤条件" AllowEditing="True" Width="100" HorizontalHeaderContentAlignment="Center" IsEnabled="True"/>
<dxg:GridColumn FieldName="LayerStyle" Header="图层样式" Width="60" AllowSorting="False" AllowMoving="False" AllowEditing="True" HorizontalHeaderContentAlignment="Center" >
<dxg:GridColumn.CellTemplate >
<DataTemplate>
<Button Content="选择" x:Name="BtnChangeLayerStyle" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Click="BtnChangeLayerStyle_Click" />
</DataTemplate>
</dxg:GridColumn.CellTemplate>
</dxg:GridColumn>
</dxg:GridControl>
</Grid>
</GroupBox>
</Grid>
</UserControl>