コード例 #1
0
 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);
 }
コード例 #2
0
 public void RemoveElement(ScrollElement element)
 {
     Elements.Remove(element);
     BuildContainer(0, 0);
 }
コード例 #3
0
 public void AddElement(ScrollElement element)
 {
     Elements.Add(element);
     BuildContainer(0, 0);
 }