Hi,
I'm drawing a tree diagram horizontally. How do i tell it to draw each of the hierarchy levels vertically aligned?
So, for example, my diagram looks like this:
But i want it to look like this by default (I dragged the nodes into position manually for the sake of illustration):
I've tried setting all of the treeDiagramLayout properties to "Center"...
Thanks in advance for your assistance.
Phil
Sorry, i can't upload or host the diagrams.
Essentially i would like each level of the tree to be centrally aligned.
Thanks
Hello Phil,
I have been looking into your post and for some reason the attachments that you are referring to does not pass though. Would you please zip you files or project and try to attach it again in order to be able to further investigate this for you and provide you with more detailed information on this matter.
Looking forward to hearing from you.
Thanks - please see the attached sample, which exhibits the problem.
Hello Phill,
Thank you for your patience.
I have been further investigating the sample application, that you have attached. It seems that when using the tree layout of XamDiagram by default it arranges the nodes in that way. If you want you can use the default layout instead of tree layout and add in your nodeViewModel a property from type point that contains the position of every diagram node. You can bind this property to the position property of DiagramNode. Also our XamDiagram has a functionality that enable you to create a custom layout, that lets you create a layout, that completes your requirements. You can read more details and see a sample from the following link from our online documentation:
http://help.infragistics.com/doc/WPF/kur/CLR4.0/?page=xamDiagram_Configuring_the_Layout.html
Please let me know if you need any further assistance on this matter.
Hello,
I am just checking if there is anything else I can do for you.
Thanks Zhivko - I tried writing the custom layout and this has solved the problem.
Thanks,
Thank you for your reply.
I am very glad that you have managed to resolve your issue.