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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

auto alignment of the diagram

Thread ID:

Created:

Updated:

Platform:

Replies:

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

hi

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

Thanks


Maria Amal Raj T [Syncfusion]
Replied On 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.


CONFIRMATION

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.

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

;