Esempio n. 1
0
        public override ICollectionCell GetICollectionCell(int section, int row)
        {
            var item = Model.ItemFor(section, row);
            var cell = item as ICollectionCell;

            if (cell != null)
            {
                return(cell);
            }

//			if(item == null)
//				return new StringCell("");
            cell = GetCellFromEvent(item);

            if (cell == null)
            {
                cell = CellRegistrar.GetCollectionCell(item.GetType());
            }

            if (cell == null)
            {
                cell = base.GetICollectionCell(section, row);
            }

            var binding = cell as IBindingCell;

            if (binding != null)
            {
                binding.BindingContext = item;
            }

            return(cell);
        }