Пример #1
0
        public override UIKit.UITableViewCell GetCell(UIKit.UITableView tableView, Foundation.NSIndexPath indexPath)
        {
            var cell = tableView.DequeueReusableCell("Cell", indexPath);

            cell.TextLabel.Text = model.PlaceNames[indexPath.Row];
            return(cell);
        }
Пример #2
0
        public override UIKit.UITableViewCell GetCell(Cell item, UIKit.UITableViewCell reusableCell, UIKit.UITableView tableView)
        {
            var thecell = (CustomListViewCell)item;
            var cell    = (BubbleCell)tableView.DequeueReusableCell(Id) ?? new BubbleCell(thecell.IsMe);

            cell.Update(thecell.Text);
            return(cell);
        }
Пример #3
0
        public UIKit.UITableViewCell GetCell(UIKit.UITableView tv)
        {
            var cell = tv.DequeueReusableCell(SpinnerTableViewCell.Key) as SpinnerTableViewCell ?? new SpinnerTableViewCell();

            cell.BackgroundColor = tv.BackgroundColor;
            cell.StartSpinner();
            return(cell);
        }
        public override UIKit.UITableViewCell GetCell(UIKit.UITableView tableView, Foundation.NSIndexPath indexPath)
        {
            var cell = tableView.DequeueReusableCell("todocell", indexPath);

            cell.TextLabel.Text       = todoItems[indexPath.Row].Name;
            cell.DetailTextLabel.Text = "";
            cell.Accessory            = todoItems[indexPath.Row].Done ? UITableViewCellAccessory.Checkmark : UITableViewCellAccessory.None;
            return(cell);
        }
Пример #5
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);
        }