GoXam for WPF v3
InitializeTreeVertexValues Method
Northwoods.GoXam.Layout Namespace > TreeLayout Class : InitializeTreeVertexValues Method
Assign initial property values for a TreeVertex.
Syntax
protected virtual void InitializeTreeVertexValues( 
   TreeVertex v
)

Parameters

v
Remarks

The values may be inherited, so this method is called while propagating values from the root nodes. This method should not walk the tree, since it is called for each TreeVertex in a depth-first manner starting at a root.

You probably do not need to override this method, but if you do you should call first either the base method or TreeVertex.CopyInheritedPropertiesFrom, since they assign most of the TreeVertex property values used to influence the layout. Informational properties such as TreeVertex.DescendentCount and TreeVertex.MaxGenerationCount will not yet have been initialized by the time this method is called. It is more common to override AssignTreeVertexValues in order to modify a property or two to customize the layout at that node.

When the TreeVertex.Alignment is BusBranching, this will modify the TreeVertex.Angle appropriately depending on which side of the bus the vertex is on.

See Also

Reference

TreeLayout Class
TreeLayout Members
AssignTreeVertexValues Method