1、引用Nuget包:
2、添加节点列表和绘图控件
- <DockPanel>
- <ItemsControl DockPanel.Dock="Left">
- <h:GeometryNodeData Text="节点"/>
- ItemsControl>
- <h:Diagram>
- <h:Diagram.Layout>
- <h:LocationLayout />
- h:Diagram.Layout>
- <h:Diagram.LinkDrawer>
- <h:BrokenLinkDrawer />
- h:Diagram.LinkDrawer>
- <b:Interaction.Behaviors>
- <h:DiagramDropTextNodeBehavior/>
- b:Interaction.Behaviors>
- h:Diagram>
- DockPanel>
3、运行效果
VS2022 NET7
GitHub - HeBianGu/WPF-Diagram: WPF流程图控件
exe示例下载地址:Release 1.0.0 · HeBianGu/WPF-Diagram · GitHub
待更新
GitHub - HeBianGu/WPF-ControlDemo: 示例
GitHub - HeBianGu/WPF-ControlBase: Wpf封装的自定义控件资源库
GitHub - HeBianGu/WPF-Control: WPF轻量控件和皮肤库
System.Windows.Controls 命名空间 | Microsoft Learn
HeBianGu的个人空间-HeBianGu个人主页-哔哩哔哩视频