/// <summary> /// Copy constructor /// </summary> /// <param name="other"></param> public ContainerBase(ContainerBase other) : base(other) { if (other.Background != null) Background = (IVisualElement)other.Background.Clone(); else Background = null; ElementsDrawMode = other.ElementsDrawMode; Padding = other.Padding; if (other.Border != null) Border = (IBorder)other.Border.Clone(); else Border = null; }
/// <summary> /// Copy constructor /// </summary> /// <param name="other"></param> public ContainerBase(ContainerBase other) : base(other) { if (other.Background != null) { Background = (IVisualElement)other.Background.Clone(); } else { Background = null; } ElementsDrawMode = other.ElementsDrawMode; Padding = other.Padding; if (other.Border != null) { Border = (IBorder)other.Border.Clone(); } else { Border = null; } }