public NativeCell (Android.Content.Context context, FastCell fastCell) : base (context)
		{
			FastCell = fastCell;
			fastCell.PrepareCell ();
			var renderer = RendererFactory.GetRenderer (fastCell.View);
			this.AddView (renderer.ViewGroup);
			//			_view = renderer.NativeView;
			//			ContentView.AddSubview (_view);
		}
		public void RecycleCell (FastCell newCell)
		{
			if (newCell == _fastCell) {
				_fastCell.BindingContext = _fastCell.OriginalBindingContext;
			} else {
				_fastCell.BindingContext = newCell.BindingContext;
			}
			_fastCell.BindingContext = newCell.BindingContext;
		}
 public NativeCell(NSString cellId, FastCell fastCell)
     : base(UITableViewCellStyle.Default, cellId)
 {
     _fastCell = fastCell;
     _fastCell.PrepareCell ();
     _originalBindingContext = fastCell.BindingContext;
     var renderer = RendererFactory.GetRenderer (fastCell.View);
     _view = renderer.NativeView;
     ContentView.AddSubview (_view);
 }
Esempio n. 4
0
			public void RecycleCell (Android.Views.View view, FastCell newCell)
			{
				if (CellItemsByCoreCells.ContainsKey (view)) {
					var reusedItem = CellItemsByCoreCells [view];
					if (OriginalBindingContextsForReusedItems.ContainsKey (newCell)) {
						reusedItem.BindingContext = OriginalBindingContextsForReusedItems [newCell];
					} else {
						reusedItem.BindingContext = newCell.BindingContext;
					}
				}
			}
Esempio n. 5
0
        public NativeCell(NSString cellId, FastCell fastCell) : base(UITableViewCellStyle.Default, cellId)
        {
            _fastCell = fastCell;
            _fastCell.PrepareCell();
//			_fastCell.OriginalBindingContext = _fastCell.BindingContext;

            var renderer = RendererFactory.GetRenderer(fastCell.View);

            _view = renderer.NativeView;
            ContentView.AddSubview(_view);
        }
Esempio n. 6
0
 public object GetBindingContextForReusedCell(FastCell cell)
 {
     if (OriginalBindingContextsForReusedItems.ContainsKey(cell))
     {
         return(OriginalBindingContextsForReusedItems [cell]);
     }
     else
     {
         return(null);
     }
 }
Esempio n. 7
0
 public void RecycleCell(FastCell newCell)
 {
     if (newCell == _fastCell)
     {
         _fastCell.BindingContext = _fastCell.OriginalBindingContext;
     }
     else
     {
         _fastCell.BindingContext = newCell.BindingContext;
     }
     _fastCell.BindingContext = newCell.BindingContext;
 }
Esempio n. 8
0
 public void RecycleCell(NativeCell view, FastCell newCell)
 {
     if (CellItemsByCoreCells.ContainsKey(view))
     {
         var reusedItem = CellItemsByCoreCells [view];
         if (OriginalBindingContextsForReusedItems.ContainsKey(newCell))
         {
             reusedItem.BindingContext = OriginalBindingContextsForReusedItems [newCell];
         }
         else
         {
             reusedItem.BindingContext = newCell.BindingContext;
         }
     }
 }
            public void CacheCell(FastCell cell, Android.Views.View view)
            {
                var cellItemsByCoreCells = GetCellItemsByCoreCells (cell.ReuseIdentifier);
                cellItemsByCoreCells [view] = cell;

                OriginalBindingContextsForReusedItems [cell] = cell.BindingContext;
            }
Esempio n. 10
0
 public void RecycleCell(NativeCell view, FastCell newCell)
 {
     var cellItemsByCoreCells = GetCellItemsByCoreCells (newCell.ReuseIdentifier);
     if (cellItemsByCoreCells.ContainsKey (view)) {
         var reusedItem = cellItemsByCoreCells [view];
         if (OriginalBindingContextsForReusedItems.ContainsKey (newCell)) {
             reusedItem.BindingContext = OriginalBindingContextsForReusedItems [newCell];
         } else {
             reusedItem.BindingContext = newCell.BindingContext;
         }
     }
 }
Esempio n. 11
0
			public void CacheCell (FastCell cell, Android.Views.View view)
			{
				CellItemsByCoreCells [view] = cell;
				OriginalBindingContextsForReusedItems [cell] = cell.BindingContext;
			}
Esempio n. 12
0
			void CacheBindingContextForReusedCell (FastCell cell)
			{
				OriginalBindingContextsForReusedItems [cell] = cell.BindingContext;
			}
Esempio n. 13
0
			public object GetBindingContextForReusedCell (FastCell cell)
			{
				if (OriginalBindingContextsForReusedItems.ContainsKey (cell)) {
					return OriginalBindingContextsForReusedItems [cell];
				} else {
					return null;
				}
			}
Esempio n. 14
0
 void CacheBindingContextForReusedCell(FastCell cell)
 {
     OriginalBindingContextsForReusedItems [cell] = cell.BindingContext;
 }
Esempio n. 15
0
 public void CacheCell(FastCell cell, NativeCell view)
 {
     CellItemsByCoreCells [view] = cell;
     OriginalBindingContextsForReusedItems [cell] = cell.BindingContext;
 }