Exemplo n.º 1
0
        private void Compose(Component component)
        {
            component.UpdateLocalTransform();

            ApplyExpand(component);

            foreach (var child in component.Children)
            {
                Compose(child);
            }

            /* TODO: SpaceSplitters
             * - commonsplitter: normal splitter including expand behaviour
             * - equalsplitter: every component has the same width/height
             */
            ApplyExpand(component);

            LayoutController layout = LayoutResolver.GetLayout(component.Layout);

            layout.ApplyLayout(component);
            layout.ApplyAutosize(component);
            layout.ApplyMaxSize(component);

            if (component.CenterContent)
            {
                layout.ApplyContentCentering(component);
            }
        }