Example #1
0
 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);
 }
Example #2
0
        public void AddComponent(RectangleComponent component)
        {
            component.Parent = this;
            component.X      = ContentValue;
            this.Childs.Add(component);

            ContentValue += component.Width;
        }