Hey Stoyan,
I have 2 queries which I think would make our diagrams appear much neater...
We are using a TreeLayout and actually allow the user to select the TreeLayoutLinkType, so, the solutions have to work for all 4 options! Our users drag components onto the diagram which consist of a "parent" node followed by any number of "child" nodes from 0 to n. This creates the tree structure which shows their strategy visually.
Attached is a pic of a possible diagram, as you can see, the "Stop" node is across the bottom but no links exist to it yet.
I have toyed with anchor points etc but what i'm trying to get are perfectly straight vertical links from the 5 nodes down to stop. I.e. Almost an anchor point in the exact places that the link would meet the Stop node if vertical. I hope that makes sense!
The second thing is regarding the creation of links. As mentioned before, I offer the TreeLayoutLinkType as a choice to the user and when I programatically create a link I get this before arranging the layout to pull in the type needed, however, if the user creates a link manually and the linkCreated event is fired, it's obviously not using this. I don't want to call tree.Arrange when the user creates a link (only when they add new nodes) so is there any way of me getting that link to draw in the correct layout type? Currently, it always defaults to curved irrelevant of the preference choice.
Sorry it's a long one! I hope it makes sense.
Cheers,
Rich