TreePlus CollapseTree Method TreePlusSilverlight - An implementation of the TreePlus algorithm using Silverlight
Recursively collapses the tree. Given a list of nodes and a node index, each node is translated in such a way that the tree takes minimal vertical space. This is achieved by checking if the space above a node is filled (in which case the node is already drawn in an appropriate position) or not (in which case the node needs to be translated "upwards") and taking respective action.

Namespace: TreePlusSilverlight
Assembly: TreePlusSilverlight (in TreePlusSilverlight.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

Parameters

nodes
Type: OnlineSystem.Collections.Generic List Node 
List of visible nodes on the tree
collapseIndex
Type: OnlineSystem Int32
Index of currently collapsing node.
See Also