Width=Auto doesn't refresh on link label

I want to add informations on 3 parts of my link, the from, the to, and the mid part. Each of these parts are databind to some datas. When data changes, the values of all parts are updated but the width of the TextBlock are not updated.

To update the width, I need to move something in the diagram, and then the width is auto-sized.

Here is my DataTemplate:



<go:LinkPanel go:Part.SelectionElementName=“Path” go:Part.SelectionAdorned=“True”
go:Part.SelectionAdornmentTemplate="{StaticResource LinkSelectionAdornmentTemplate}"
go:Part.Reshapable=“True”>


go:LinkPanel.ToolTip






</go:LinkPanel.ToolTip>

go:Link.Route
<go:Route Routing=“Normal” 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}}"
Stroke="{Binding Path=Data.Highlight, Converter={StaticResource theStrokeColorConverter}}" />



<TextBlock Text="{Binding Path=Data.Data.InitialTemperature}"
go:LinkPanel.Index=“0”
go:LinkPanel.Offset=“NaN NaN”
go:LinkPanel.Orientation=“Upright” />
<TextBlock Text="{Binding Path=Data.Data.FinalTemperature}"
go:LinkPanel.Index="-1"
go:LinkPanel.Offset=“NaN NaN”
go:LinkPanel.Orientation=“Upright” />
<TextBlock Text="{Binding Path=Data.Data.Name}"
go:LinkPanel.Offset=“0 NaN”
go:LinkPanel.Orientation=“Upright” Background=“Pink” Width=“Auto” Height=“Auto” />

</go:LinkPanel>


Forget it, I found my answer 4 threads below.