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); }
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); }