133 lines
5.1 KiB
XML
133 lines
5.1 KiB
XML
<UserControl
|
|
x:Class="CAD.Extend.Views.DialogConvertBaseMap"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:CAD.Extend.Views.CustomControl"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
|
Width="360"
|
|
mc:Ignorable="d">
|
|
<UserControl.Resources>
|
|
<!-- 使用相对路径引用 CustomStyles.xaml -->
|
|
<ResourceDictionary Source="pack://application:,,,/CAD.Extend;component/Views/Style/CustomStyles.xaml" />
|
|
|
|
</UserControl.Resources>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="auto" />
|
|
</Grid.RowDefinitions>
|
|
<local:customWindowTitleBar x:Name="titleBar" />
|
|
<Grid Grid.Row="1">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="40" />
|
|
<RowDefinition Height="40" />
|
|
<RowDefinition Height="40" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="80" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Label
|
|
Grid.Row="0"
|
|
Grid.Column="0"
|
|
Height="auto"
|
|
Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Content="底图颜色:" />
|
|
<StackPanel
|
|
Grid.Row="0"
|
|
Grid.Column="1"
|
|
Orientation="Horizontal">
|
|
<Border
|
|
Width="60"
|
|
Height="25"
|
|
HorizontalAlignment="Left"
|
|
Background="{Binding BlockColor}"
|
|
BorderBrush="Black"
|
|
BorderThickness="1" />
|
|
<telerik:RadButton
|
|
Margin="10,0,0,0"
|
|
Background="SeaGreen"
|
|
Command="{Binding Command_Color}"
|
|
Content="选择颜色"
|
|
Style="{StaticResource sysBtn2}" />
|
|
</StackPanel>
|
|
<Label
|
|
Grid.Row="1"
|
|
Grid.Column="0"
|
|
Height="auto"
|
|
Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Content="底图图层:" />
|
|
<telerik:RadComboBox
|
|
x:Name="comboxLayerName"
|
|
Grid.Row="1"
|
|
Grid.Column="1"
|
|
Width="200"
|
|
Height="25"
|
|
Margin="0,0,10,0"
|
|
HorizontalAlignment="Left"
|
|
DisplayMemberPath="Key"
|
|
ItemsSource="{Binding listLayerName}"
|
|
SelectedItem="{Binding SelectedLayerName, Mode=TwoWay}"
|
|
Style="{StaticResource sysCombobox}" />
|
|
<Label
|
|
Grid.Row="2"
|
|
Grid.Column="0"
|
|
Height="auto"
|
|
Margin="10,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Content="变为图块:" />
|
|
<StackPanel
|
|
Grid.Row="2"
|
|
Grid.Column="1"
|
|
Orientation="Horizontal">
|
|
<CheckBox
|
|
Width="30"
|
|
Margin="0,10,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Stretch"
|
|
IsChecked="{Binding IsToBlock}" />
|
|
<telerik:RadWatermarkTextBox
|
|
x:Name="txtBlockName"
|
|
Width="170"
|
|
Height="25"
|
|
Margin="0,0,0,0"
|
|
IsEnabled="{Binding IsToBlock}"
|
|
Text="{Binding BlockName, Mode=TwoWay}"
|
|
WatermarkContent="请输入块名" />
|
|
<telerik:RadButton
|
|
Background="SeaGreen"
|
|
Command="{Binding Command_BlockName}"
|
|
Content="随机"
|
|
IsEnabled="{Binding IsToBlock}"
|
|
Style="{StaticResource sysBtn}" />
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
<Border
|
|
Grid.Row="2"
|
|
Height="30"
|
|
Background="{StaticResource ColorPrimary}">
|
|
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
|
<telerik:RadButton
|
|
Margin="5"
|
|
Command="{Binding OKCommand}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}"
|
|
Content="确定"
|
|
Style="{StaticResource sysBtn}" />
|
|
<telerik:RadButton
|
|
Margin="5"
|
|
Command="{Binding CloseCommand}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}"
|
|
Content="取消"
|
|
Style="{StaticResource sysBtn2}" />
|
|
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
</UserControl>
|