The MindFusion Forums
Flow Diagramming Components >> Windows Forms >> applying a layout inside of a container node
https://mindfusion.eu/Forum/YaBB.pl?num=1557690533

Message started by MindFusionUser47 on May 12th, 2019 at 7:48pm

Title: applying a layout inside of a container node
Post by MindFusionUser47 on May 12th, 2019 at 7:48pm
Using the Orthogonal Layout for diagram produces the layout as expected.

var layout = new MindFusion.Diagramming.Layout.OrthogonalLayout();
layout.Arrange(diagram);

Expect when I introduce container nodes. The container nodes are laid out. The problem is I insert my table nodes into the container nodes.

container.Add(tablenode)

How do I recursively apply the layout inside the containers? Right now all of the table nodes are stacked on top of each other inside of the container node. They have links to each other inside the container and going outside of the container node to other table nodes inside other container nodes. I have multiple container nodes in one diagram.

Title: Re: applying a layout inside of a container node
Post by Slavcho on May 13th, 2019 at 7:47am
There's no built-in support for recursive layout. Try code from https://mindfusion.eu/Forum/YaBB.pl?num=1273515591/1#1 to arrange containers before applying main layout.

Regards,
Slavcho
Mindfusion

Title: Re: applying a layout inside of a container node
Post by MindFusionUser47 on May 16th, 2019 at 9:52pm
Thank you. The code works for orthogonal layouts.

The MindFusion Forums » Powered by YaBB 2.6.11!
YaBB Forum Software © 2000-2024. All Rights Reserved.