public void AddItem(RectangleComponent item) { item.Parent = this; item.Width = this.Width - Scroll.Width - 1; item.X = Scroll.Width + 1; // item.UIRenderer = this.UIRenderer; Items.Add(item); }
public void AddComponent(RectangleComponent component) { component.Parent = this; component.X = ContentValue; this.Childs.Add(component); ContentValue += component.Width; }