MA
Maria Amal Raj T
Syncfusion Team
March 3, 2011 10:10 AM UTC
Hi,
It's by design, the tree structure is depends upon the LayoutRoot Node’s position. The RootNode position depends on the DiagramView's Bounds property. If Bounds property is not specified, then the LayoutRoot will be placed at the center of DiagramView. Else if a Bounds is specified, then the RootNode will be placed at the center of the Bound's value. The Bounds property is set to as follows :
DiagramView diagramView=new DiagramView();
diagramView.Bounds=new Thickness(0,0,100,1000); //(0,0,Width, Height)
Here, the First two value of Zeros will not have any effect. The above code will place the LayoutRoot Node at (50,500), that is the center of the Bounds.
Please let us know if you have any further queries.
Regards,
Maria Amal Raj T,
Diagram WPF & Silverlight Team,
Syncfusion - Chennai.