protected override UITableViewCell CreateCell (UIKit.UITableView tv)
		{
			string summary = GetSummary(tv);
			var cellStyle = (String.IsNullOrEmpty(summary))?UITableViewCellStyle.Default : UITableViewCellStyle.Subtitle;
			string key = rkey + (cellStyle.ToString());
			var cell = tv.DequeueReusableCell(key) as VerticalLayoutCell;
			if (cell == null) {
				cell = new VerticalLayoutCell(cellStyle, key);	
			}
			
			return cell;
		}
		public override UIKit.UITableViewCell GetCell (UITableView tv)
		{
			CellStyle = String.IsNullOrEmpty(Value) ? UITableViewCellStyle.Default : UITableViewCellStyle.Subtitle;
			string key = "vle_"+CellStyle.ToString();
			var cell = tv.DequeueReusableCell(key) as VerticalLayoutCell;
			if (cell == null) {
				cell = new VerticalLayoutCell(CellStyle, key);
			}
			
			cell.TextLabel.Text = Caption;
			
			if (!String.IsNullOrEmpty(Value))
				cell.DetailTextLabel.Text = Value;
			
			return cell;
		}
Ejemplo n.º 3
0
		public override UITableViewCell GetCell (UITableView tv)
		{
			var cell = tv.DequeueReusableCell (ekey) as VerticalLayoutCell;
			if (cell == null) {
				cell = new VerticalLayoutCell (ekey);
				cell.SelectionStyle = UITableViewCellSelectionStyle.None;
			} 
			else
				RemoveTag(cell, 1);
			
			if (textField == null) {
				textField = CreateTextField(tv);
			}
						
			if (becomeResponder){
				textField.BecomeFirstResponder ();
				becomeResponder = false;
			}
			
			textField.KeyboardType = KeyboardType;
			cell.TextLabel.Text = Caption;
			cell.ContentView.AddSubview (textField);
			return cell;
		}