This project is read-only.

How to get labeled edges with Graph# ?

Jan 20, 2016 at 8:38 AM
I also want to know the question:

I'm an absolute beginner in C#. I draw some graphs with Graph# a few days ago. Now I don't know how to get labeled edges. By getting information on the internet, I saw this code:
<Style TargetType="{x:Type graphsharp:EdgeControl}">
    <ToolTip x:Key="ToolTipContent">
            <TextBlock x:Name="txtBlock" FontWeight="Bold" Text="Kanten Information"/>
            <TextBlock Text="{Binding ID}"/>
            <TextBlock Text="{Binding AD}"/>
<Setter Property="ToolTip" Value="{StaticResource ToolTipContent}"/>
But I don't want to show the edge information by using ToolTip. Otherwise it should be visible by using a label which is positioned in the middle of the edge. I've tried it with implementing a template for the edges but it doesn't work, because the visualisation of the edges got lost.

Thanks for your help!!!