Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Resizing container nodes and diagram nodes (Read 3947 times)
Deepa
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Apr 14th, 2011
Resizing container nodes and diagram nodes
Apr 21st, 2011 at 6:28am
Print Post  
Hi,

I have 3 container nodes and need to add diagram nodes to each one.
Now when i add diagram nodes, the container node resizes and it overlaps the other container nodes.
Is there any api or default outof the box solution where by setting a property all the container nodes added get resized?
Has anyone come across such an issue? Pls direct me to links if this prblm has been addressed before.

Thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Resizing container nodes and diagram nodes
Reply #1 - Apr 21st, 2011 at 7:48am
Print Post  
Hi,

After all child nodes are added to their containers, run any of the layout classes and it should arrange the containers in a row without overlapping.

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


I love YaBB 1G - SP1!

Posts: 6
Joined: Apr 14th, 2011
Re: Resizing container nodes and diagram nodes
Reply #2 - Apr 21st, 2011 at 7:53am
Print Post  
What do u mean by Layout classes?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Resizing container nodes and diagram nodes
Reply #3 - Apr 21st, 2011 at 8:03am
Print Post  
Anything that derives from the Layout class. For example call this, and if there are no links between the container nodes they will get arranged in a row:

new LayeredLayout().Arrange(diagram);
  
Back to top
 
IP Logged
 
Deepa
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Apr 14th, 2011
Re: Resizing container nodes and diagram nodes
Reply #4 - Apr 21st, 2011 at 8:17am
Print Post  
Thanks..

I want to display NodeListView items instread of list format as a tablular format.

Ex:

Li1
Li2
Li3

as

Li1 Li2 Li3
Li4 Li5
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Resizing container nodes and diagram nodes
Reply #5 - Apr 21st, 2011 at 9:04am
Print Post  
That should be possible by setting WrapPanel from the Silverlight Toolkit as ItemsPanel of the NodeListView. So you will have to create a custom style for the NodeListView with a setter for ItemsPanel as shown in the ItemsControl.ItemsPanel MSDN topic.
  
Back to top
 
IP Logged
 
Deepa
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 6
Joined: Apr 14th, 2011
Re: Resizing container nodes and diagram nodes
Reply #6 - Apr 21st, 2011 at 9:13am
Print Post  
Thank you Stoyo for your prompt answers.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint