I am an absolute beginner in C #. A few days ago I draw several graphs using Graph #. Now I do not know how to get the marked edges. Having received information on the Internet, I saw this code:
<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>
But I do not want to show edge information with ToolTip. Otherwise, this should be visible using the mark located in the middle of the edge. I tried it with the introduction of a template for edges, but it does not work, because the visualization of the edges is lost.
Thanks for the help!!!
source
share