|
|
|
|
<dx:DXWindow
|
|
|
|
|
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:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
|
|
|
|
|
xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
|
|
|
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
|
|
|
x:Class="Kingo.Plugin.EngineEditor.Views.FrmDrawDoublePolyline"
|
|
|
|
|
mc:Ignorable="d" Title="画双线" Width="400" Height="95" ResizeMode="NoResize"
|
|
|
|
|
d:DesignHeight="450" d:DesignWidth="800" Closed="DXWindow_Closed"
|
|
|
|
|
xmlns:local="clr-namespace:Kingo.Plugin.EngineEditor.Views" >
|
|
|
|
|
<Grid>
|
|
|
|
|
<StackPanel Orientation="Vertical" VerticalAlignment="Center">
|
|
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,5,0,0">
|
|
|
|
|
<ComboBox x:Name="combDrawMode" Width="70" Height="27" SelectedValue="{Binding DrawMode,Mode=TwoWay}" SelectedValuePath="CODE" DisplayMemberPath="NAME" Margin="5,0" VerticalContentAlignment="Center" SelectionChanged="combDrawMode_SelectionChanged">
|
|
|
|
|
</ComboBox>
|
|
|
|
|
<Label x:Name="paraXWKD" HorizontalAlignment="Left" Content="线物宽度:" VerticalContentAlignment="Center" Margin="5,0,0,0" ToolTip = "Ctrl+滚轮调整宽度"/>
|
|
|
|
|
<dxe:SpinEdit x:Name="paraWidth" Width="90" Height="27" Value="{Binding Width,Mode=TwoWay}" IsTextEditable="True" Visibility="{Binding ElementName=paraXWKD,Path=Visibility}" Increment="0.5" ToolTip = "CTRL+滚轮调整宽度" EditValueChanged="paraWidth_EditValueChanged"/>
|
|
|
|
|
<Label x:Name="laSetWidth" Content="微调值:" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,0,0,0"/>
|
|
|
|
|
<dxe:SpinEdit x:Name="txtSetWidth" Text="0.1" Width="90" Height="27" IsTextEditable="True" Visibility="{Binding ElementName=laSetWidth,Path=Visibility}" MouseLeave="txtSetWidth_MouseLeave"/>
|
|
|
|
|
<!--<dxe:TextEdit x:Name="txtFontSize" Height="27" Width="60" MaskType="Numeric" Text="{Binding Width,Mode=TwoWay}" Visibility="{Binding ElementName=paraXWKD,Path=Visibility}"/>-->
|
|
|
|
|
<Label x:Name="paraAutoIdentity" HorizontalAlignment="Left" Content="识别度:" VerticalContentAlignment="Center" Margin="5,0,0,0" ToolTip="Shift+滚轮调整识别度"/>
|
|
|
|
|
<Grid VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Visibility="{Binding ElementName=paraAutoIdentity,Path=Visibility}" ToolTip="Shift+滚轮调整识别度">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
<RowDefinition />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid >
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
<ColumnDefinition />
|
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<TextBlock Text="{Binding ElementName=slider, Path=Minimum}" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,2,0" />
|
|
|
|
|
<dxe:TrackBarEdit x:Name="slider" VerticalAlignment="Center" Grid.Column="1" SmallStep="0.05" LargeStep="0.1" Value="{Binding ToloranceScale,Mode=TwoWay}" Minimum="0.05" Maximum="0.5" Width="90" TickFrequency="0.05" />
|
|
|
|
|
<TextBlock Text="{Binding ElementName=slider, Path=Maximum}" Grid.Column="2" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2,0,0,0" />
|
|
|
|
|
</Grid>
|
|
|
|
|
<TextBlock Grid.Row="1" Text="{Binding ElementName=slider, Path=Value}" HorizontalAlignment="Center" />
|
|
|
|
|
</Grid>
|
|
|
|
|
<Button x:Name="btnStartDraw" Width="75" Height="25" Content="开始绘制" Visibility="Collapsed" HorizontalAlignment="Right" Margin="0,0,10,0" Click="btnStartDraw_Click"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel x:Name="spAutoCheckbox" Orientation="Horizontal" Margin="5,0">
|
|
|
|
|
<ComboBox SelectedIndex="0" x:Name="cmbDL" Width="146" Visibility="Collapsed" SelectionChanged="cmbDL_SelectionChanged" >
|
|
|
|
|
<ComboBoxItem Content="1001-铁路用地" Tag="1001" />
|
|
|
|
|
<ComboBoxItem Content="1003-公路用地" Tag="1003"/>
|
|
|
|
|
<ComboBoxItem Content="1004-城镇村道路用地" Tag="1004" />
|
|
|
|
|
<ComboBoxItem Content="1006-农村道路" Tag="1006" />
|
|
|
|
|
<ComboBoxItem Content="1009-管道运输用地" Tag="1009" />
|
|
|
|
|
<ComboBoxItem Content="1101-河流水面" Tag="1101" />
|
|
|
|
|
<ComboBoxItem Content="1107-沟渠" Tag="1107" />
|
|
|
|
|
<ComboBoxItem Content="1107A-干渠" Tag="1107A" />
|
|
|
|
|
</ComboBox>
|
|
|
|
|
<CheckBox x:Name="cbAutoClose" Content="闭合线两端" Margin="5,0" VerticalAlignment="Center" Click="cbAutoClose_Click" />
|
|
|
|
|
<CheckBox x:Name="cbAutoStep" Content="自动计算步长" Margin="5,0" VerticalAlignment="Center" Click="cbAutoStep_Click" />
|
|
|
|
|
<CheckBox x:Name="cbAutoTrack" Content="自动追踪道路" Margin="5,0" Visibility="{Binding ElementName=paraAutoIdentity,Path=Visibility}" VerticalAlignment="Center" Click="cbAutoTrack_Click" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</dx:DXWindow>
|