public override void PrepareLayout() { base.PrepareLayout(); var currentState = new LayoutState(CollectionView.Bounds.Size, ScrollDirection); if (_state.Equals(currentState)) { return; } SetupCollectionView(); UpdateLayout(); _state = currentState; }
public bool Equals(LayoutState other) { return(Size.Equals(other.Size) && Direction == other.Direction); }