示例#1
0
 public void AddArrangedView(UIView view)
 {
     ArrangedViews.Add(view);
     view.Frame = FrameForViewAtIndex(ArrangedViews.Count - 1);
     AddSubview(view);
     RaiseGridSizeChanged();
 }
示例#2
0
 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();
 }