public void AddElementSequential(ScrollElement element) { if (Elements.Count <= 0) { element.Position = new Vector2(0, 0); element.OriginalPosition = element.Position; } else { element.Position = new Vector2(0, Elements.Last().OriginalPosition.Y + Elements.Last().Height); element.OriginalPosition = element.Position; } Elements.Add(element); BuildContainer(0, 0); }
public void RemoveElement(ScrollElement element) { Elements.Remove(element); BuildContainer(0, 0); }
public void AddElement(ScrollElement element) { Elements.Add(element); BuildContainer(0, 0); }