protected virtual void UpdateDefaultCell(DefaultCell cell, NSIndexPath indexPath) { cell.Label.Text = ItemsSource[indexPath].ToString(); if (cell is ItemsViewCell constrainedCell) { ItemsViewLayout.PrepareCellForLayout(constrainedCell); } }
void UpdateDefaultSupplementaryView(DefaultCell cell, NSString elementKind, NSIndexPath indexPath) { cell.Label.Text = ItemsSource.Group(indexPath).ToString(); if (cell is ItemsViewCell) { cell.ConstrainTo(GetLayoutSpanCount() * ItemsViewLayout.ConstrainedDimension); } }