Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Upgrade Issue (link.Origin.MoveWith) (Read 1993 times)
donalmeida
Junior Member
**
Offline


Yay...

Posts: 65
Joined: Oct 6th, 2009
Upgrade Issue (link.Origin.MoveWith)
Oct 18th, 2012 at 5:44pm
Print Post  
We recently upgraded our controls from Silverlight 2 to Silverlight 5 controls (2.3.0.16737). We used to have code that is broken now.  After I created links and added them to the nodes I would run this to make the links connect correctly. link.Origin.MoveWith(0.1, 0.1); but this code now seems to be obsolete. is there an equivalent  for this in the latest controls.
  

Don Almeida.
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Upgrade Issue (link.Origin.MoveWith)
Reply #1 - Oct 18th, 2012 at 6:56pm
Print Post  
Try calling the link's ReassignAnchorPoints method, or set link.StartPoint to origin.GetNearestBorderPoint(destination.GetCenter()).

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint