private string LayoutOptimizer(BoxTree.Node node) { return(null); if (node.IsAssistantRoot) { return(null); } return(node.Level % 2 == 1 ? "hstack1" : "vstack1"); }
private static Color GetBoxFillColor(BoxTree.Node node) { var box = node.Element; return(box.IsSpecial ? Colors.DarkGray : box.IsCollapsed && ( node.ChildCount > 0 || node.AssistantsRoot != null && node.AssistantsRoot.ChildCount > 0) ? Colors.BurlyWood : Colors.Beige); }