예제 #1
0
 public void RemoveItem(ListboxItem lbi)
 {
     if (lbi != null)
     {
         totalHeightForYPos -= lbi.Height;
         Items.Remove(lbi);
     }
 }
예제 #2
0
 public void AddItem(ListboxItem lbi)
 {
     if (lbi != null)
     {
         if (lbi.Width == -1)
         {
             lbi.Width = Width;
         }
         lbi.Y = totalHeightForYPos;
         lbi.X = X;
         totalHeightForYPos += lbi.Height;
         Items.Add(lbi);
     }
 }