Beispiel #1
0
        public override void PrepareLayout()
        {
            base.PrepareLayout();

            var currentState = new LayoutState(CollectionView.Bounds.Size, ScrollDirection);

            if (_state.Equals(currentState))
            {
                return;
            }

            SetupCollectionView();
            UpdateLayout();
            _state = currentState;
        }
Beispiel #2
0
 public bool Equals(LayoutState other)
 {
     return(Size.Equals(other.Size) && Direction == other.Direction);
 }