Exemplo n.º 1
0
        private string LayoutOptimizer(BoxTree.Node node)
        {
            return(null);

            if (node.IsAssistantRoot)
            {
                return(null);
            }
            return(node.Level % 2 == 1 ? "hstack1" : "vstack1");
        }
Exemplo n.º 2
0
        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);
        }