public void AddArrangedView(UIView view) { ArrangedViews.Add(view); view.Frame = FrameForViewAtIndex(ArrangedViews.Count - 1); AddSubview(view); RaiseGridSizeChanged(); }
public void RemoveArrangedViewsAtIndexes(NSIndexSet indices) { for (int n = ArrangedViews.Count - 1; n >= 0; --n) { if (indices.Contains((nuint)n)) { ArrangedViews[n].RemoveFromSuperview(); ArrangedViews.RemoveAt(n); } } RaiseGridSizeChanged(); }