public static void RemoveFadeable(Slideable f) { Slideables.Remove(f); if (_dismissingAll) return; foreach(var view in Slideables.Where(o => o.Top > f.Top)) view.SlideTo(view.Left, view.Top - f.Height - 10); }
public static double AddFadeable(Slideable f) { Slideables.Add(f); if (Slideables.Count == 1) return 10; var last = Slideables[Slideables.Count - 2]; return last.Top + last.Height + 10; }