MonoMobile.Views.DateTimeCellView.UpdateCell C# (CSharp) Méthode

UpdateCell() public méthode

public UpdateCell ( UITableViewCell cell, NSIndexPath indexPath ) : void
cell UITableViewCell
indexPath NSIndexPath
Résultat void
		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());
		}