public override UITableViewCell GetCell(UITableView tv)
{
var cell = tv.DequeueReusableCell (skey);
if (cell == null){
cell = new UITableViewCell (Value == null ? UITableViewCellStyle.Default : UITableViewCellStyle.Subtitle, skey);
cell.SelectionStyle = UITableViewCellSelectionStyle.Blue;
}
cell.Accessory = Accessory;
cell.TextLabel.Text = Caption;
cell.TextLabel.TextAlignment = Alignment;
cell.ImageView.Image = image;
// The check is needed because the cell might have been recycled.
if (cell.DetailTextLabel != null)
cell.DetailTextLabel.Text = Value == null ? "" : Value;
return cell;
}