Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Treelayout (expand/collapse) (Read 4180 times)
dku
YaBB Newbies
*
Offline



Posts: 41
Joined: Jun 5th, 2008
Treelayout (expand/collapse)
Jun 6th, 2008 at 9:19am
Print Post  
Hello,

Still in WPFDiagram evaluation ...

I've tried the TreeLayout demo, and +/- buttons are mentioned in the bottom of the form, but I don't see them in the diagram ?

- When you collapse a tree node, is the layout recomputed ? (meaning ocupying the freed space by collapse)
- Is it possible to set the spacing between rows of nodes in a tree independently from their size ?


If you can explain me how to see it in the demo ...

Thanks
Didier
  
Back to top
 
IP Logged
 
Paul Eden
Full Member
***
Offline



Posts: 128
Joined: Aug 15th, 2007
Re: Treelayout (expand/collapse)
Reply #1 - Jun 6th, 2008 at 9:28am
Print Post  
To get the diagram to recompute used space you need to handle the Diagram.TreeExpanded and Diagram.TreeCollasped events and just do a Diagram.ResizeToFitItems call within each.

To adjust row spacing, change the LevelDistance on your layout object.


Paul
  
Back to top
WWW  
IP Logged
 
dku
YaBB Newbies
*
Offline



Posts: 41
Joined: Jun 5th, 2008
Re: Treelayout (expand/collapse)
Reply #2 - Jun 6th, 2008 at 10:16am
Print Post  
Thanks,
Will try.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Treelayout (expand/collapse)
Reply #3 - Jun 6th, 2008 at 11:01am
Print Post  
Add NodesExpandable="True" to the Diagram's Xaml to get the +/- buttons, which let you expand and collapse tree branches.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint