///<summary> /// Creates a new instance of <c>ThreeTierLayout</c>. ///</summary> /// <param name="fromSketch"/> Whether the <see cref="HierarchicLayout"/> shall be run in incremental layout mode. public ThreeTierLayout(bool fromSketch) { HierarchicLayout hl = new HierarchicLayout { LayoutOrientation = LayoutOrientation.LeftToRight, LayoutMode = fromSketch ? LayoutMode.Incremental : LayoutMode.FromScratch, }; var rgl = new RecursiveGroupLayout(hl) { AutoAssignPortCandidates = true, FromSketchMode = true }; CoreLayout = rgl; }
public TableLayout(bool fromSketch) { // incremental hierarchic layout is used for the core layout that connects the table nodes var hl = new HierarchicLayout { LayoutOrientation = LayoutOrientation.LeftToRight, LayoutMode = fromSketch ? LayoutMode.Incremental : LayoutMode.FromScratch, OrthogonalRouting = true }; var rgl = new RecursiveGroupLayout(hl) { AutoAssignPortCandidates = true, FromSketchMode = true }; CoreLayout = rgl; }