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.
48 lines
2.9 KiB
48 lines
2.9 KiB
<UserControl x:Class="Kingo.Plugin.YJJK.View.ViewCGDC_TC" |
|
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" |
|
mc:Ignorable="d" |
|
d:DesignHeight="450" d:DesignWidth="800"> |
|
<Grid Background="White"> |
|
<GroupBox Header="选择变更成果数据"> |
|
<Grid> |
|
<Grid Margin="8" Visibility="{Binding SelectTemplate}"> |
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="130" /> |
|
<RowDefinition Height="230" /> |
|
<RowDefinition Height="auto" /> |
|
</Grid.RowDefinitions> |
|
<TreeView x:Name="tvVCTEntity" ItemsSource="{Binding IncrementalUpdatingSource,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" > |
|
<TreeView.ItemTemplate> |
|
<HierarchicalDataTemplate ItemsSource="{Binding SubEntities,Mode=TwoWay}"> |
|
<Label Content="{Binding Name}" /> |
|
</HierarchicalDataTemplate> |
|
</TreeView.ItemTemplate> |
|
<TreeView.ItemContainerStyle> |
|
<Style TargetType="{x:Type TreeViewItem}"> |
|
<Setter Property="IsExpanded" Value="True"></Setter> |
|
</Style> |
|
</TreeView.ItemContainerStyle> |
|
</TreeView> |
|
<TreeView x:Name="tvVCTEntity3" ItemsSource="{Binding LayerSource,UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="1"> |
|
<TreeView.ItemTemplate> |
|
<HierarchicalDataTemplate ItemsSource="{Binding SubEntities,Mode=TwoWay}"> |
|
<CheckBox IsChecked="{Binding IsChecked,Mode=TwoWay}" Content="{Binding Name}" Tag="{Binding }"/> |
|
</HierarchicalDataTemplate> |
|
</TreeView.ItemTemplate> |
|
<TreeView.ItemContainerStyle> |
|
<Style TargetType="{x:Type TreeViewItem}"> |
|
<Setter Property="IsExpanded" Value="True"></Setter> |
|
</Style> |
|
</TreeView.ItemContainerStyle> |
|
</TreeView> |
|
<StackPanel Orientation="Horizontal" Grid.Row="2"> |
|
<TextBlock Text="注:用户可自行根据本作业区县成果创建合适的模板" TextWrapping="Wrap" Foreground="Red"></TextBlock> |
|
</StackPanel> |
|
</Grid> |
|
</Grid> |
|
</GroupBox> |
|
</Grid> |
|
</UserControl>
|
|
|