public override void UpdateCell(UITableViewCell cell, NSIndexPath indexPath)
{
base.UpdateCell(cell, indexPath);
cell.Accessory = UITableViewCellAccessory.None;
cell.TextLabel.Text = Caption;
DatePicker = CreatePicker();
var view = new UIView(DatePicker.Bounds) { BackgroundColor = UIColor.Black };
view.AddSubview(DatePicker);
Control = DatePicker;
InputView.InputView = view;
InputView.InputAccessoryView = new UIDatePickerToolbar(this) { };
if (cell.DetailTextLabel != null)
cell.DetailTextLabel.Text = FormatDate(DatePicker.Date.ToDateTime());
}