Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need to position nodes in the diagram absolutely (Read 2367 times)
kaykay15
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 43
Joined: Mar 11th, 2010
Need to position nodes in the diagram absolutely
May 12th, 2010 at 2:19pm
Print Post  
Hello Team,

I need to position some nodes in the diagram such that those are docked to the left/top of the diagram and visible even scrolling and zooming.

Is there any way to achive this behavour?

Thanks,
-Kranthi
  

Thanks,&&-KayKay
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need to position nodes in the diagram absolute
Reply #1 - May 12th, 2010 at 2:31pm
Print Post  
Hi,

You could add nodes as children of the panel that contains the diagram. However you won't be able to connect links to these nodes. If you need that, you will have to keep them inside the diagram and handle ZoomFactorChanged and the ScrollViewer's scroll events to fix the nodes' positions.

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


I love YaBB 1G - SP1!

Posts: 43
Joined: Mar 11th, 2010
Re: Need to position nodes in the diagram absolute
Reply #2 - May 12th, 2010 at 2:51pm
Print Post  
there would be no links to those nodes from any of the other nodes,
but still we need those inside the diagram as they need to be exported with the diagram.
  

Thanks,&&-KayKay
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need to position nodes in the diagram absolute
Reply #3 - May 12th, 2010 at 3:33pm
Print Post  
You can keep an invisible copy inside the diagram only for serialization, if only for a few nodes, and clone them after loading to show the fixed nodes. Otherwise handle the zoom and scroll events and set the nodes' Bounds and RenderTransform to compensate for the diagram's zoom and scroll values.

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