Perhaps it is me who is not yet a beast in WPF, but I have diffculty to bind something inside a DataTemplate to a DependencyProperty on my UserControl.
I tried to use the RelativeSource (see the code below) to back up to the UserControl but without success.
*Note: Network is a property of NetworkGrid.
<go:LinkPanel go:Part.SelectionElementName="Path" go:Part.SelectionAdorned="True" Visibility="Visible"
go:Part.SelectionAdornmentTemplate="{StaticResource LinkSelectionAdornmentTemplate}"
go:Part.Reshapable="True">
<go:LinkPanel.ToolTip>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Name=" />
<TextBlock Text="{Binding Path=Data.Data.Name}" FontWeight="Bold" />
<TextBlock Text=" From=" />
<TextBlock Text="{Binding Path=Data.From}" />
<TextBlock Text=" To=" />
<TextBlock Text="{Binding Path=Data.To}" />
</StackPanel>
</go:LinkPanel.ToolTip>
<!--Route-->
<go:Link.Route>
<go:Route Routing="Orthogonal" Curve="JumpGap"
FromEndSegmentDirection="RotatedNodeOrthogonal"
ToEndSegmentDirection="RotatedNodeOrthogonal"
RelinkableFrom="True" RelinkableTo="True"
LinkReshapeHandleTemplate="{StaticResource LinkReshapableHandleTemplate}" />
</go:Link.Route>
<go:LinkShape Stroke="Transparent" StrokeThickness="5" />
<go:LinkShape x:Name="Path" StrokeThickness="{Binding Path=Data.Highlight, Converter={StaticResource theStrokeThicknessConverter}}">
<go:LinkShape.Stroke>
<MultiBinding Mode="OneWay" UpdateSourceTrigger="PropertyChanged" >
<MultiBinding.Converter>
<local:StreamColorConverter/>
</MultiBinding.Converter>
<Binding Path="Data.Data"/>
<b> <Binding RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType={x:Type local:NetworkGrid}}" Path="Network" /></b>
…