Hi,
I was creating links programatically and every time I added one, I arranged the nodes with an automatica layout.
http://mindfusion.eu/Forum/YaBB.pl?board=wpfdg_disc;action=display;num=123262812...Now I have to apply the layout only on demand, so now I only create the link programatically without apply the layout... and the link appears far from the nodes... It's strange because when I move each node the link moves as well... so are definitely linked:
When I apply the layout then the link appears correctly.
I'm creating the link in this way:
TableNode tableNodeFrom = GetTableNodeFromTableName( rel.TableFrom );
TableNode tableNodeTo = GetTableNodeFromTableName( rel.TableTo );
if ( tableNodeFrom != null && tableNodeTo != null )
{
DiagramLink l= DatabaseDiagram.Factory.CreateDiagramLink( tableNodeFrom, tableNodeTo );
l.Tag = rel;
l.Font = _linkFont;
l.ToolTip = rel.FkColumn;
l.Text = rel.FkColumn;
l.TextBrush = _linkTextBrush;
}
Do you have any idea about what may be the problem?
Cheers.