Esempio n. 1
0
 protected Panel(int preOffset, int span,int postOffset, Element parent = null)
 {
     PreOffset = preOffset;
     PostOffset = postOffset;
     Span = span;
     Parent = parent;
 }
Esempio n. 2
0
 public VerticalPanel(int preOffset, int span, int postOffset, Element parent = null)
     : base(preOffset, span, postOffset, parent)
 {
 }
Esempio n. 3
0
 public VerticalPanel(int span, Element parent = null)
     : base(span, parent)
 {
 }
Esempio n. 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)
 {
 }
Esempio n. 7
0
 protected Panel(int preOffset, int span, Element parent = null)
     : this(preOffset,span, 0, parent)
 {
 }
Esempio n. 8
0
 protected Panel(int span, Element parent = null)
     : this(0,span,parent)
 {
 }