Exemplo n.º 1
0
		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);
		}
Exemplo n.º 2
0
		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);
 }
Exemplo 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;
					}
				}
			}
Exemplo 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);
        }
Exemplo n.º 6
0
 public object GetBindingContextForReusedCell(FastCell cell)
 {
     if (OriginalBindingContextsForReusedItems.ContainsKey(cell))
     {
         return(OriginalBindingContextsForReusedItems [cell]);
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 7
0
 public void RecycleCell(FastCell newCell)
 {
     if (newCell == _fastCell)
     {
         _fastCell.BindingContext = _fastCell.OriginalBindingContext;
     }
     else
     {
         _fastCell.BindingContext = newCell.BindingContext;
     }
     _fastCell.BindingContext = newCell.BindingContext;
 }
Exemplo 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;
         }
     }
 }
Exemplo n.º 9
0
            public void CacheCell(FastCell cell, Android.Views.View view)
            {
                var cellItemsByCoreCells = GetCellItemsByCoreCells (cell.ReuseIdentifier);
                cellItemsByCoreCells [view] = cell;

                OriginalBindingContextsForReusedItems [cell] = cell.BindingContext;
            }
Exemplo 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;
         }
     }
 }
Exemplo n.º 11
0
			public void CacheCell (FastCell cell, Android.Views.View view)
			{
				CellItemsByCoreCells [view] = cell;
				OriginalBindingContextsForReusedItems [cell] = cell.BindingContext;
			}
Exemplo n.º 12
0
			void CacheBindingContextForReusedCell (FastCell cell)
			{
				OriginalBindingContextsForReusedItems [cell] = cell.BindingContext;
			}
Exemplo n.º 13
0
			public object GetBindingContextForReusedCell (FastCell cell)
			{
				if (OriginalBindingContextsForReusedItems.ContainsKey (cell)) {
					return OriginalBindingContextsForReusedItems [cell];
				} else {
					return null;
				}
			}
Exemplo n.º 14
0
 void CacheBindingContextForReusedCell(FastCell cell)
 {
     OriginalBindingContextsForReusedItems [cell] = cell.BindingContext;
 }
Exemplo n.º 15
0
 public void CacheCell(FastCell cell, NativeCell view)
 {
     CellItemsByCoreCells [view] = cell;
     OriginalBindingContextsForReusedItems [cell] = cell.BindingContext;
 }