Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DiagramNode.MoveWith method dissapeared? (Read 3720 times)
Mikael P
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Apr 14th, 2014
DiagramNode.MoveWith method dissapeared?
Apr 14th, 2014 at 8:31am
Print Post  
Hi,

We have a solution that we're trying to upgrade from Silverlight 4 to 5 (i.e. replacing the mindfusion dlls). However, we've stumbled upon a problem.

The method DiagramNode.MoveWith seem to have been replaced/removed to something else but we can't find anything about this in the API (where it still seems like the DiagramNode.MoveWith is valid) or in the forum.

Is there a new method to use and where can we find it?

E.g. selectedNode.MoveWith(0, yTopValue - selectedNode.Bounds.Top);

Thanks in advance!

//Mikael
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramNode.MoveWith method dissapeared?
Reply #1 - Apr 14th, 2014 at 8:41am
Print Post  
Hi,

You can set the Bounds property instead, or call the SetBounds method:

Code
Select All
var bounds = selectedNode.Bounds;
bounds = Utilities.Offset(bounds, 0, yTopValue - bounds.Top);
selectedNode.SetBounds(bounds, true); 



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


I Love MindFusion!

Posts: 3
Joined: Apr 14th, 2014
Re: DiagramNode.MoveWith method dissapeared?
Reply #2 - Apr 14th, 2014 at 8:55am
Print Post  
Hi Stoyo,

I'll check it out! Thanks for your fast response!

Kind regards

//Mikael
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint