Beispiel #1
0
            public override UITableViewCell GetCell(UITableView aTableView, NSIndexPath aIndexPath)
            {
                CellEditable cell = aTableView.DequeueReusableCell(kCellIdentifier) as CellEditable;

                if (cell == null)
                {
                    cell = new CellEditable(UITableViewCellStyle.Default, kCellIdentifier);
                }

                cell.TextField.Delegate = new Delegate(aIndexPath.Row, iList, iOption, cell);
                if (aIndexPath.Row < iList.Count)
                {
                    cell.TextField.Text = iList[aIndexPath.Row];
                }
                else
                {
                    cell.TextField.Text = string.Empty;
                }

                return(cell);
            }
 protected override void OnEditingStarted(CellEditable editable, string path)
 {
     base.OnEditingStarted(editable, path);
     editable.EditingDone += EditableEditingDone;
 }
Beispiel #3
0
 void OnServiceComboStartEdited(object o, EditingStartedArgs args)
 {
     ServiceCellEdit = args.Editable;
 }