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); }
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; } } }
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); }
public object GetBindingContextForReusedCell(FastCell cell) { if (OriginalBindingContextsForReusedItems.ContainsKey(cell)) { return(OriginalBindingContextsForReusedItems [cell]); } else { return(null); } }
public void RecycleCell(FastCell newCell) { if (newCell == _fastCell) { _fastCell.BindingContext = _fastCell.OriginalBindingContext; } else { _fastCell.BindingContext = newCell.BindingContext; } _fastCell.BindingContext = newCell.BindingContext; }
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; }
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; } } }
public void CacheCell (FastCell cell, Android.Views.View view) { CellItemsByCoreCells [view] = cell; OriginalBindingContextsForReusedItems [cell] = cell.BindingContext; }
void CacheBindingContextForReusedCell (FastCell cell) { OriginalBindingContextsForReusedItems [cell] = cell.BindingContext; }
public object GetBindingContextForReusedCell (FastCell cell) { if (OriginalBindingContextsForReusedItems.ContainsKey (cell)) { return OriginalBindingContextsForReusedItems [cell]; } else { return null; } }
void CacheBindingContextForReusedCell(FastCell cell) { OriginalBindingContextsForReusedItems [cell] = cell.BindingContext; }
public void CacheCell(FastCell cell, NativeCell view) { CellItemsByCoreCells [view] = cell; OriginalBindingContextsForReusedItems [cell] = cell.BindingContext; }