protected virtual void UpdateDefaultCell(DefaultCell cell, NSIndexPath indexPath) { cell.Label.Text = ItemsSource[indexPath].ToString(); if (cell is ItemsViewCell constrainedCell) { ItemsViewLayout.PrepareCellForLayout(constrainedCell); } }
protected virtual void UpdateTemplatedCell(TemplatedCell cell, NSIndexPath indexPath) { cell.ContentSizeChanged -= CellContentSizeChanged; cell.Bind(ItemsView.ItemTemplate, ItemsSource[indexPath], ItemsView); cell.ContentSizeChanged += CellContentSizeChanged; ItemsViewLayout.PrepareCellForLayout(cell); }