public void ItemMeasureInvalidated(int index) { if (_hasUnevenRows) { if (_cached.Count > index) { _cached[index] = false; } if (_realizedItem.ContainsKey(index)) { CollectionView.RequestLayoutItems(); } } else if (index == 0) { // Reset item size to measure updated size InitializeMeasureCache(); CollectionView.RequestLayoutItems(); } }
public void UpdateSpan(int span) { Span = span; InitializeMeasureCache(); CollectionView.RequestLayoutItems(); }