更新图数据库相关数据

This commit is contained in:
2025-09-12 18:34:33 +08:00
parent e773052a85
commit 0cb6dd50e0
2054 changed files with 24813 additions and 239 deletions

View File

@@ -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>