internal virtual void Layout(RxTheme theme = null) { if (!IsLayoutCycleRequired) { return; } IsLayoutCycleRequired = false; if (_invalidated) { //System.Diagnostics.Debug.WriteLine($"{this}->Layout(Invalidated)"); var oldChildren = Children; _children = null; MergeChildrenFrom(oldChildren); _invalidated = false; } if (!_isMounted && Parent != null) { OnMount(); } if (_stateChanged) { OnUpdate(); } foreach (var child in Children) { child.Layout(theme); } }
internal virtual void Layout(RxTheme theme = null /*, VisualNode parent = null*/) { //if (parent != null) // Parent = parent; if (!IsLayoutCycleRequired) { return; } IsLayoutCycleRequired = false; if (_invalidated) { //System.Diagnostics.Debug.WriteLine($"{this}->Layout(Invalidated)"); var oldChildren = Children; _children = null; MergeChildrenFrom(oldChildren); _invalidated = false; } if (!_isMounted && Parent != null) { OnMount(); } CommitAnimations(); AnimateThis(); if (_stateChanged) { OnUpdate(); } foreach (var child in Children.Where(_ => _.IsLayoutCycleRequired)) { child.Layout(theme); } }
public static RxTheme UseTheme <T>(this IEnumerable <T> node, RxTheme theme) where T : VisualNode { theme.Add(node.ToArray()); return(theme); }
public static RxTheme UseTheme <T>(this T node, RxTheme theme) where T : VisualNode { theme.Add(node); return(theme); }
internal sealed override void Layout(RxTheme theme) { base.Layout(this); }
internal sealed override void Layout(RxTheme theme /*, VisualNode parent = null*/) { base.Layout(this /*, parent*/); }
internal override void Layout(RxTheme theme = null) { _theme = theme; base.Layout(theme); }
internal override void Layout(RxTheme theme = null /*, VisualNode parent = null*/) { _theme = theme; base.Layout(theme /*, parent*/); }