Beispiel #1
0
 protected Panel(int preOffset, int span,int postOffset, Element parent = null)
 {
     PreOffset = preOffset;
     PostOffset = postOffset;
     Span = span;
     Parent = parent;
 }
 public VerticalPanel(int preOffset, int span, int postOffset, Element parent = null)
     : base(preOffset, span, postOffset, parent)
 {
 }
 public VerticalPanel(int span, Element parent = null)
     : base(span, parent)
 {
 }
Beispiel #4
0
        /// <summary>
        /// Adds a child to the parent element in a chainable manner.
        /// </summary>
        /// <param name="element">The element to be added to the parent.</param>
        /// <param name="callback">Delegate that give access to the new child.</param>
        /// <returns>The parent element .</returns>
        public Element AddChild(Element element, Action<Element> callback = null)
        {
            element.Parent = this;
            element.ID = ID + "_" + Children.Count;

            Children.Add(element);
            spanCount += element.PreOffset + element.Span + element.PostOffset;

            Reflow(Bounds);

            if (callback != null) callback(element);

            return this;
        }
 public HorizontalPanel(int preOffset, int span, int postOffset, Element parent = null)
     : base(preOffset, span, postOffset, parent)
 {
 }
 public HorizontalPanel(int span, Element parent = null)
     : base(span, parent)
 {
 }
Beispiel #7
0
 protected Panel(int preOffset, int span, Element parent = null)
     : this(preOffset,span, 0, parent)
 {
 }
Beispiel #8
0
 protected Panel(int span, Element parent = null)
     : this(0,span,parent)
 {
 }