Пример #1
0
		public override UIKit.UITableViewCell GetCell (UIKit.UITableView tv)
		{
			// try and dequeue a cell object to reuse. if one doesn't exist, create a new one
			ExhibitorCell cell = tv.DequeueReusableCell (cellKey) as ExhibitorCell;
			if (cell == null) {
				cell = new UI.CustomElements.ExhibitorCell (exhibitor);
			}
			cell.UpdateCell(exhibitor);

			return cell;
		}
		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(UIKit.UITableView tv)
        {
            var cell = tv.DequeueReusableCell (CellKey);

            if (SignInButton == null) {
                SignInButton = new Google.SignIn.SignInButton {
                    Frame = new CoreGraphics.CGRect (20, 0, tv.Frame.Width - 40, 44),
                    Enabled = this.Enabled,
                };
            }

            if (cell == null) {
                cell = new UIKit.UITableViewCell (UIKit.UITableViewCellStyle.Default, CellKey);
                cell.Add (SignInButton);
            }

            return cell;
        }
Пример #4
0
        public override UIKit.UITableViewCell GetCell(UIKit.UITableView tv)
        {
            if(selectedIndex < Options.Length)
                Detail = Options[selectedIndex].Value;

            var cell = tv.DequeueReusableCell (skeyvalue);
            if (cell == null) {
                cell = new UITableViewCell (UITableViewCellStyle.Value1, skeyvalue);
                cell.SelectionStyle = UITableViewCellSelectionStyle.Blue;
            }
            cell.Accessory = UITableViewCellAccessory.None;
            cell.TextLabel.Text = Caption;
            cell.TextLabel.BackgroundColor = UIColor.Clear;

            // The check is needed because the cell might have been recycled.
            if (cell.DetailTextLabel != null)
                cell.DetailTextLabel.Text =  Detail;

            return cell;
        }