Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DiagramLink does not remain anchored to node that are children inside a Rectangle Shape Node (Read 3222 times)
calace
YaBB Newbies
*
Offline


Just WPF It

Posts: 4
Joined: Sep 17th, 2013
DiagramLink does not remain anchored to node that are children inside a Rectangle Shape Node
Oct 25th, 2013 at 3:21am
Print Post  
Why is it that the DiagramLink anchored to a ShapeNode within a group that has a Rectangle Shape Node as the Main item does not remain anchored when the ShapeNode.Move(x,y) is called programmatically. If you move the group manually, it is fine.

I used DynamicLink = true and it works most of the time but not always. It used to work in the old MindFusion version. 2.3.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramLink does not remain anchored to node that are children inside a Rectangle Shape Node
Reply #1 - Oct 25th, 2013 at 1:52pm
Print Post  
I suppose something has broken since 2.3. For the time being use this method as a work-around:

Code
Select All
private void MoveGroup(DiagramNode mainNode, Point newPosition)
{
	Point oldPosition = mainNode.Bounds.Location;
	var ist = new InteractionState(mainNode, 8, Action.Modify);
	ist.Start(oldPosition, diagram);
	ist.Update(newPosition, diagram);
	ist.Complete(newPosition, diagram);
} 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
calace
YaBB Newbies
*
Offline


Just WPF It

Posts: 4
Joined: Sep 17th, 2013
Re: DiagramLink does not remain anchored to node that are children inside a Rectangle Shape Node
Reply #2 - Oct 25th, 2013 at 3:17pm
Print Post  
Thanks a lot for your quick help. Initial testing with the move of the node makes this behaviour similar to the 2.3 version.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramLink does not remain anchored to node that are children inside a Rectangle Shape Node
Reply #3 - Oct 28th, 2013 at 11:43am
Print Post  
The Move method should update links to attached nodes correctly in this new v3.0.3 build:
https://mindfusion.eu/_beta/WpfDiagram303.zip

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