示例#1
0
        public void Render(IRenderable rootRenderable)
        {
            DebugMsg($"Rendering from {rootRenderable}", setDebugFlag: 1);

            var  newRoot    = rootRenderable.FinalizeRendering(_ => Render(rootRenderable));
            bool anyUpdates = false;

            Reconcile(ref root, newRoot, ref anyUpdates);

            root.Display.ParentFont = DisplaySystem.Fonts.Default;

            if (anyUpdates)
            {
                Walk(element =>
                {
                    element.OnReconciliationCompleted();
                    return(true);
                });
            }

            Style.Apply(root, DefaultTheme);

            Walk(element =>
            {
                element.Display.System = DisplaySystem;
                return(true);
            });
        }