GraphSharp网站给出的介绍:Graph# is a graph layout framework. It contains some layout algorithms and a GraphLayout control for WPF applications.即GraphSharp是一个包含一些布局算法可应用于WPF程序图形布局的框架。
GraphSharp网站给出了一个帮助的博客地址,我把它转到了这里。另外,还有一个帮助视频,我把它放在了这里。在这里再次表达一下对墙和翻墙的感受。。。。。视频中的代码如下:
window.xaml窗体中的代码:
<Window x:Class="GraphSharpLearn1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:graphsharp="clr-namespace:GraphSharp.Controls;assembly=GraphSharp.Controls"
Title="MainWindow" Height="350" Width="525"
x:Name="root">
<Grid>
<graphsharp:GraphLayout x:Name="graphlayout"
Graph="{Binding ElementName=root,Path=GraphToVisualize}"/>
</Grid>
</Window>
window.xaml.cs中的代码: