The MindFusion Forums | |
Flow Diagramming Components >> WPF >> Automated layout forgetting link anchor IDs
https://mindfusion.eu/Forum/YaBB.pl?num=1507220988 Message started by Kim Lillås on Oct 5th, 2017 at 4:29pm |
Title: Automated layout forgetting link anchor IDs Post by Kim Lillås on Oct 5th, 2017 at 4:29pm
Hi,
I am trying out some automated layout for the first time. I have a set of nodes and links. I want them to layout without changing the existing anchor selections. However, after the layout is done, the Link.DestinationAnchor and OriginAnchor is set to -1, and visually the links no longer tie to the original anchor points. The assignment of -1 happens during the automated layout operation. I assumed that the layout.Anchoring = Anchroing.Keep setting would force the layout to keep the link anchors? [code] var layout = new MindFusion.Diagramming.Wpf.Layout.DecisionLayout(); layout.Anchoring = Anchoring.Keep; layout.GrowToFit = true; var diagramItemCollection = new DiagramItemCollection(); foreach (var diagramItem in MindfusionDiagram.Items.Where(x => x.GetType() != typeof(NestedDiagram))) { diagramItemCollection.Add(diagramItem); } layout.Arrange(MindfusionDiagram, diagramItemCollection);[/code] |
Title: Re: Automated layout forgetting link anchor IDs Post by Slavcho on Oct 6th, 2017 at 3:53pm
Hi,
This build should keep them - https://mindfusion.eu/_beta/wpfdiag_anckeep.zip Node positions are not affected by anchor points though, the layout class aligns links to points only as a post-processing step at this time. So this could lead to links taking several U-turns to get from outgoing to incoming anchor points. Regards, Slavcho |
Title: Re: Automated layout forgetting link anchor IDs Post by Kim Lillås on Oct 9th, 2017 at 6:27am
Hello,
Thanks for the answer! Greetings, Kim |
The MindFusion Forums » Powered by YaBB 2.6.11! YaBB Forum Software © 2000-2024. All Rights Reserved. |