public override UITableViewCell GetCell (UITableView tv)
{
var cell = tv.DequeueReusableCell (key);
if (cell == null){
cell = new UITableViewCell (UITableViewCellStyle.Default, key);
if ((Flags & CellFlags.Transparent) != 0){
cell.BackgroundColor = UIColor.Clear;
//
// This trick is necessary to keep the background clear, otherwise
// it gets painted as black
//
cell.BackgroundView = new UIView (RectangleF.Empty) {
BackgroundColor = UIColor.Clear
};
}
if ((Flags & CellFlags.DisableSelection) != 0)
cell.SelectionStyle = UITableViewCellSelectionStyle.None;
cell.ContentView.AddSubview (View);
}
return cell;
}