Esempio n. 1
0
        public override UIContainer Add(UIElement elem)
        {
            UIContainer container = new UIContainer();

            container.SetWidth(slotsWidth).SetX(slideContainer.Count() * slotsWidth);
            slideContainer.Add(container);
            container.Add(elem);

            this.maxIndex++;
            return(this);
        }
Esempio n. 2
0
 public override UIContainer Add(params UIElement[] elems)
 {
     foreach (UIElement elem in elems)
     {
         UIContainer container = new UIContainer();
         container.SetWidth(slotsWidth).SetX(slideContainer.Count() * slotsWidth);
         slideContainer.Add(container);
         container.Add(elem);
         this.maxIndex++;
     }
     return(this);
 }