예제 #1
0
        override public UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            var cell = tableView.DequeueReusableCell(ObjectCell.Identifier, indexPath) as ObjectCell;

            cell.VirtualObject = VirtualObjectManager.AvailableObjects[indexPath.Row];

            if (selectedVirtualObjectRows.Contains((nuint)indexPath.Row))
            {
                cell.Accessory = UITableViewCellAccessory.Checkmark;
            }
            else
            {
                cell.Accessory = UITableViewCellAccessory.None;
            }
            return(cell);
        }
예제 #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();
 }