如何使用GraphSharp获得带标签的边缘

时间:2015-09-09 05:47:48

标签: c# graph edges

我是C#的绝对新手。 我几天前用Graph#绘制了一些图表。现在我不知道如何获得标记边缘。通过在互联网上获取信息,我看到了这段代码:

    <Style TargetType="{x:Type graphsharp:EdgeControl}">
        <Style.Resources>
            <ToolTip x:Key="ToolTipContent">
                <StackPanel>
                    <TextBlock x:Name="txtBlock" FontWeight="Bold" Text="Kanten Information"/>
                    <TextBlock Text="{Binding ID}"/>
                    <TextBlock Text="{Binding AD}"/>
                </StackPanel>
            </ToolTip>
        </Style.Resources>
        <Setter Property="ToolTip" Value="{StaticResource ToolTipContent}"/>
    </Style>

但我不想使用工具提示显示边缘信息。否则,通过使用位于边缘中间的标签,应该可以看到它。 我已经尝试过为边缘实现模板,但它不起作用,因为边缘的可视化丢失了。

感谢您的帮助!!!

0 个答案:

没有答案
相关问题