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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

auto alignment of the diagram

Thread ID:





98452 Mar 1,2011 09:36 AM UTC Mar 3,2011 10:10 AM UTC WPF 1
Tags: Diagram
Asked On March 1, 2011 09:36 AM UTC


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


Maria Amal Raj T [Syncfusion]
Replied On March 3, 2011 10:10 AM UTC


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.

Maria Amal Raj T,
Diagram WPF & Silverlight Team,
Syncfusion - Chennai.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon