public override UITableViewCell GetCell(UITableView tv) { var cell = tv.DequeueReusableCell(skey) as WebImageTableViewCell; if (cell == null) { cell = new WebImageTableViewCell(UITableViewCellStyle.Subtitle, skey); } cell.SelectionStyle = HasTappedEvent()? UITableViewCellSelectionStyle.Blue : UITableViewCellSelectionStyle.None; cell.Accessory = HasTappedEvent() ? UITableViewCellAccessory.DisclosureIndicator : UITableViewCellAccessory.None; cell.TextLabel.Text = Caption; cell.TextLabel.Font = TitleFont; cell.TextLabel.TextAlignment = Alignment; cell.ImageView.Image = image; cell.DetailTextLabel.Lines = DetailLines; cell.SetImageUrl(imgUrl); if (cell.DetailTextLabel != null) { cell.DetailTextLabel.Text = Value == null ? "" : Value; } cell.SetNeedsLayout(); return(cell); }
public override UITableViewCell GetCell (UITableView tv) { var cell = tv.DequeueReusableCell (skey) as WebImageTableViewCell; if (cell == null){ cell = new WebImageTableViewCell (UITableViewCellStyle.Subtitle, skey); } cell.SelectionStyle = HasTappedEvent()? UITableViewCellSelectionStyle.Blue : UITableViewCellSelectionStyle.None; cell.Accessory = HasTappedEvent() ? UITableViewCellAccessory.DisclosureIndicator : UITableViewCellAccessory.None; cell.TextLabel.Text = Caption; cell.TextLabel.Font = TitleFont; cell.TextLabel.TextAlignment = Alignment; cell.ImageView.Image = image; cell.DetailTextLabel.Lines = DetailLines; cell.SetImageUrl(imgUrl); if (cell.DetailTextLabel!=null) cell.DetailTextLabel.Text = Value == null ? "" : Value; cell.SetNeedsLayout(); return cell; }