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

53 lines
3.1 KiB

<UserControl x:Class="Kingo.Plugin.MapView.Views.FrmSelectQS"
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"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800" Width="800" Height="450" >
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/KUI;component/Themes/Style/TreeViewStyle.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.Resources>
<HierarchicalDataTemplate x:Key="ItemNode" ItemsSource="{Binding Nodes}">
<StackPanel Orientation="Horizontal" Height="28">
<Image Width="18" Source="{Binding Icon}" Height="18" Margin="2,0" />
<TextBlock Text="{Binding Name}" FontSize="13" VerticalAlignment="Center" Margin="3,0,0,0"></TextBlock>
</StackPanel>
</HierarchicalDataTemplate>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition Height="30" />
<RowDefinition Height="*" />
<RowDefinition Height="30" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Border Grid.Row="0" Grid.ColumnSpan="2" Background="AliceBlue" BorderThickness="1" BorderBrush="#FFC1E2FF">
<Label x:Name="labXZQCode" Content="请选择需要划归的行政区" VerticalContentAlignment="Center" FontSize="14" Foreground="#FF2B2620" />
</Border>
<TreeView x:Name="tvXZQ" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ItemTemplate="{StaticResource ItemNode}" SelectedItemChanged="tvXZQ_SelectedItemChanged">
<TreeView.ItemContainerStyle>
<Style BasedOn="{StaticResource DefaultTreeViewItem}" TargetType="{x:Type TreeViewItem}">
<Setter Property="IsExpanded" Value="{Binding IsExpanded}"></Setter>
<EventSetter Event="TreeViewItem.PreviewMouseRightButtonDown" Handler="TreeViewItem_PreviewMouseRightButtonDown"/>
</Style>
</TreeView.ItemContainerStyle>
</TreeView>
<StackPanel Grid.Row="2" Orientation="Horizontal" Background="AliceBlue">
<Button Content="编辑字典" x:Name="btnEditDic" Margin="0,0" Height="23" Click="btnEditDic_Click" />
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Stretch" Background="AliceBlue">
<Button Content="确 定" x:Name="btnOK" Height="23" Margin="10,0,0,0" Click="btnOK_Click" />
<Button Content="取 消" x:Name="btnCancel" Height="23" Margin="10,0" Click="btnCancel_Click" />
</StackPanel>
</Grid>
</UserControl>