We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

auto alignment of the diagram

hi

i need some help here. suppose, i draw tree structure diagram which is not aligned properly. is any provision for auto alignment?

Thanks


1 Reply

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.


Loader.
Live Chat Icon For mobile
Up arrow icon