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); }
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(); }