更新图数据库相关数据
This commit is contained in:
@@ -11,13 +11,13 @@
|
||||
|
||||
<Grid>
|
||||
<TreeView x:Name="treeView"
|
||||
Background="{Binding TreeViewBackground, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
BorderBrush="{Binding TreeViewBorderBrush, RelativeSource={RelativeSource AncestorType=UserControl}}">
|
||||
Background="{Binding Background, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
||||
BorderBrush="{Binding BorderBrush, RelativeSource={RelativeSource AncestorType=UserControl}}">
|
||||
<TreeView.Resources>
|
||||
<!-- Checkbox节点的样式 -->
|
||||
<HierarchicalDataTemplate DataType="{x:Type local:CheckboxTreeNode}" ItemsSource="{Binding Children}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<ContentControl Content="{Binding obj}" />
|
||||
<ContentControl Content="{Binding obj}"/>
|
||||
</StackPanel>
|
||||
</HierarchicalDataTemplate>
|
||||
<!-- Label节点的样式 -->
|
||||
@@ -27,11 +27,19 @@
|
||||
<!-- Combobox节点的样式 -->
|
||||
<HierarchicalDataTemplate DataType="{x:Type local:ComboboxTreeNode}" ItemsSource="{Binding Children}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label Content="{Binding Text}" Foreground="White"/>
|
||||
<Label Content="{Binding Text}"/>
|
||||
<ContentControl Content="{Binding obj}" />
|
||||
</StackPanel>
|
||||
</HierarchicalDataTemplate>
|
||||
</TreeView.Resources>
|
||||
|
||||
<!-- 为TreeView添加右键菜单 -->
|
||||
<TreeView.ContextMenu>
|
||||
<ContextMenu>
|
||||
<MenuItem Header="全部展开" Click="ExpandAll"/>
|
||||
<MenuItem Header="全部折叠" Click="CollapseAll"/>
|
||||
</ContextMenu>
|
||||
</TreeView.ContextMenu>
|
||||
</TreeView>
|
||||
</Grid>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user